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(zod-openapi): infer OpenAPIObjectConfig #656

Merged
merged 2 commits into from
Jul 21, 2024
Merged

fix(zod-openapi): infer OpenAPIObjectConfig #656

merged 2 commits into from
Jul 21, 2024

Conversation

adjsky
Copy link
Contributor

@adjsky adjsky commented Jul 21, 2024

Fixes #646.

Just infer the OpenAPIObjectConfig instead of importing it from the internals, this way "moduleResolution": "NodeNext" users will have right intellisense.

I could, of course, just add the .js extension to the import, but i think the inferring is the way since it doesn't look like a hack.

Copy link

changeset-bot bot commented Jul 21, 2024

🦋 Changeset detected

Latest commit: e5cd222

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

This PR includes changesets to release 1 package
Name Type
@hono/zod-openapi 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

@yusukebe
Copy link
Member

Hi @adjsky

Thank you for the PR. Looks good. One thing. This is a fix change. So please mark it as a patch instead of a minor in the changeset.

@adjsky
Copy link
Contributor Author

adjsky commented Jul 21, 2024

Done!

@yusukebe
Copy link
Member

@adjsky Thanks! Merging it now.

@yusukebe yusukebe merged commit a04ab70 into honojs:main Jul 21, 2024
1 check passed
@github-actions github-actions bot mentioned this pull request Jul 21, 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
2 participants