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

restructure types #101

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

restructure types #101

wants to merge 2 commits into from

Conversation

matthyk
Copy link
Contributor

@matthyk matthyk commented Feb 8, 2024

This PR aims to discuss this idea. I have 2 motivations for the restructuring:

  • Previously, the types used internally were not exported. I think it is much more convenient if all types are simply exported, otherwise you have to stupidly rebuild the types for a TypeScript project
  • I had strange problems registering the fastifyOverview plugin in my TypeScript project. After this restructuring I had no more problems

I have followed the example of other Fastify plugins for the restructuring. See for example @fastify/postgres or @fastify/mongodb.

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

1 participant