Export and import types #7159
Labels
meta-discussion
Indicates a topic that requires input from various developers.
meta-feature-request
Issues to track feature requests.
Problem description
A discussion point raised during recent refactoring. Should we
export/import
types with the Typescript, which we currently don't.That's our current use case.
and for import
Solution description
TS recommends to use to type based export/import for types.
and for import
This pattern have some advantages:
This pattern have some disadvantages:
type
keyword for the types at time of import.Additional context
https://biomejs.dev/linter/rules/use-export-type
https://biomejs.dev/linter/rules/use-import-type
The text was updated successfully, but these errors were encountered: