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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

types: re-export FastifyListenOptions in top-level types #4135

Merged
merged 2 commits into from Jul 15, 2022

Conversation

kyranet
Copy link
Contributor

@kyranet kyranet commented Jul 12, 2022

Follow-up to #4013, I missed that the exports in each file were manual and not export *'d as I'm used to, sorry for that 馃槄

This patch allows developers to import FastifyListenOptions from fastify instead of fastify/types/instance.

Checklist

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina
Copy link
Member

Thanks for opening a PR! Can you please add a unit test, we use tsd?

@kyranet
Copy link
Contributor Author

kyranet commented Jul 12, 2022

Yes, although I can't find any test file for instance, however, test/types/import.ts seems to import the FastifyLogFn type without any usage, should I add the import here?

@mcollina
Copy link
Member

That'd be ok!

@github-actions github-actions bot removed the typescript TypeScript related label Jul 12, 2022
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 435c437 into fastify:main Jul 15, 2022
@kyranet kyranet deleted the types/re-export-listen-options branch July 15, 2022 08:02
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants