Skip to content

TypeScript refactor #1523

@Ethan-Arrowood

Description

@Ethan-Arrowood

With the in progress fastify core refactor (#1475) I'd like to work on our overall TypeScript support. I'm going to assign this task to myself and see what I can come up with. A lot of what I'll be doing is currently just ideas I have. I don't know what will stick and what wont so I'll see where it goes as I work on it!

Some ideas I have at the moment include:

  • better TypeScript testing
  • improving docs on types for plugins
  • improving internal type coverage
    I know not everyone relies on internal types, but it would be great to have for editor integration. This is probably going to be the hardest task but I'd like to investigate nonetheless.
  • decoupling of types for better maintenance
    With all of the types jammed into one file it can be hard to maintain. As most of fastify is being refactored into individual things I'd like to investigate a similar structure with the typings.

If you have any preliminary feedback or ideas, lets discuss 😄

(also I want to be clear that any changes I make will not impact the non-typed dev experience with Fastify as I know that is a value we uphold in this project 👍)

Metadata

Metadata

Labels

choreSmall changes or internal project maintenancediscussionIssues or PRs with this label will never staleinternalsChange that won't impact the surface API.typescriptTypeScript relatedv2.xIssue or pr related to Fastify v2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions