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

Fix custom fetch type #1587

Merged
merged 1 commit into from
Mar 29, 2024
Merged

Fix custom fetch type #1587

merged 1 commit into from
Mar 29, 2024

Conversation

JE-lee
Copy link
Contributor

@JE-lee JE-lee commented Mar 7, 2024

Changes

Fix the custom fetch type.
The custom fetch type does not strictly adhere to the parameter type when calling.

let response = await fetch(request);

It results in the wrong type checking when using the custom fetch.

image

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

Copy link

changeset-bot bot commented Mar 7, 2024

🦋 Changeset detected

Latest commit: 086181d

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

@JE-lee JE-lee changed the title Fix customFetch type Fix custom fetch type Mar 7, 2024
@drwpow
Copy link
Owner

drwpow commented Mar 26, 2024

This looks great! If the lint errors are fixed I’d be happy to merge

@JE-lee
Copy link
Contributor Author

JE-lee commented Mar 29, 2024

Sorry for the late response. Now it is done with no prettier problem.

@drwpow drwpow merged commit 2a66a64 into drwpow:main Mar 29, 2024
6 checks passed
@drwpow
Copy link
Owner

drwpow commented Apr 23, 2024

Published in the latest version of openapi-fetch. Thanks!

@JE-lee JE-lee deleted the custom-fetch-type branch June 3, 2024 09:06
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.

None yet

2 participants