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 types on passing request options #1639

Merged
merged 2 commits into from
Apr 28, 2024
Merged

fix types on passing request options #1639

merged 2 commits into from
Apr 28, 2024

Conversation

FreeAoi
Copy link
Contributor

@FreeAoi FreeAoi commented Apr 28, 2024

Changes

What does this PR change? Link to any related issue(s).
This pull request fixs request options type when there is required keys and when set them the type the typing for the other optional properties dissapear, below is a example the current behavior vs the new behavior with this pull request

current implementation
new implementation

How to Review

How can a reviewer review your changes? What should be kept in mind for this review?

Checklist

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

Copy link

changeset-bot bot commented Apr 28, 2024

🦋 Changeset detected

Latest commit: dc23cf7

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

@drwpow
Copy link
Owner

drwpow commented Apr 28, 2024

Ah great fix, thank you! If you could add a patch changeset (see comment) I’d be happy to approve and merge. Thank you!

@FreeAoi
Copy link
Contributor Author

FreeAoi commented Apr 28, 2024

Ready sir

Copy link
Owner

@drwpow drwpow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thank you! Will release this when this merges

@drwpow drwpow merged commit 645f436 into drwpow:main Apr 28, 2024
5 of 6 checks passed
@github-actions github-actions bot mentioned this pull request Apr 28, 2024
@MARCROCK22 MARCROCK22 mentioned this pull request Apr 28, 2024
3 tasks
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