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

Improve impossible body typing #1242

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Improve impossible body typing #1242

merged 1 commit into from
Aug 9, 2023

Conversation

drwpow
Copy link
Contributor

@drwpow drwpow commented Jul 25, 2023

Changes

Improves #1124 by adding better inference to “impossible” body types. But I think the real fix will come in #1280 which fixes the underlying typing for responses.

How to Review

CI should pass.

Checklist

N/A

@changeset-bot
Copy link

changeset-bot bot commented Jul 25, 2023

🦋 Changeset detected

Latest commit: 0f5865c

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

This PR includes changesets to release 1 package
Name Type
openapi-fetch Patch

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

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 25, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0f5865c
Status: ✅  Deploy successful!
Preview URL: https://e807136c.openapi-ts.pages.dev
Branch Preview URL: https://fix-body-never.openapi-ts.pages.dev

View logs

@djMax
Copy link

djMax commented Jul 27, 2023

I can confirm that making this same change on my "variant" for apollo-datasource-rest fixes the issue.

@drwpow drwpow marked this pull request as ready for review August 9, 2023 04:33
@drwpow drwpow changed the title WIP: Fix impossible body Improve impossible body typing Aug 9, 2023
@drwpow drwpow merged commit 8d11701 into main Aug 9, 2023
@drwpow drwpow deleted the fix-body-never branch August 9, 2023 04:37
@github-actions github-actions bot mentioned this pull request Aug 9, 2023
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.

2 participants