Skip to content
New issue

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

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

Already on GitHub? # to your account

[Client types] make args param optional if the input has no required keys #1618

Merged
merged 6 commits into from
Oct 26, 2023

Conversation

MonsterDeveloper
Copy link
Contributor

This PR modifies the ClientRequest type, so the args param is only required if the input has required keys (specified by the validator).

CleanShot 2023-10-24 at 12 20 21@2x

See #1583

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

Hi @MonsterDeveloper

Thanks for the PR. I left some comments.

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

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

Looks good! I'll merge it. Thanks!

@yusukebe
Copy link
Member

Oops. @MonsterDeveloper Could you run the command to prettify the code?

npx prettier --write ./src

@MonsterDeveloper
Copy link
Contributor Author

@yusukebe done:)

@yusukebe
Copy link
Member

Oops! Please run denoify!

@MonsterDeveloper
Copy link
Contributor Author

Sorry, forgot about denoifying each commit:) Should be OK now.

@yusukebe
Copy link
Member

Perfect! I'll merge it now and release the new version including this later. Thank you very much!!

@yusukebe yusukebe merged commit a654842 into honojs:main Oct 26, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants