Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhanced request object typing #52

Merged
merged 5 commits into from
May 27, 2024
Merged

Conversation

christoph-fricke
Copy link
Owner

Add a new typing for the request object, which infers the .json() and .text() typings from defined media types. Previously, a union of all media types where used for the return-type of .json().

closes #40

Copy link

changeset-bot bot commented May 26, 2024

🦋 Changeset detected

Latest commit: e0912db

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-msw Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@christoph-fricke christoph-fricke marked this pull request as ready for review May 27, 2024 18:57
@christoph-fricke christoph-fricke merged commit 88ca9da into main May 27, 2024
1 check passed
@christoph-fricke christoph-fricke deleted the feat/enhanced-request branch May 27, 2024 19:01
@github-actions github-actions bot mentioned this pull request May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double check RequestBody typing compatibility with MSW
1 participant