Add support for beforeDeclarations #58880
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
π Search Terms
beforeDeclarations declaration transform transformers afterDeclarations
β Viability Checklist
β Suggestion
The TypeScript compiler API already supports custom transformers in 3 ways:
But the API is missing a "Before built-in .d.ts transformations" variant.
π Motivating Example
To generate type declarations more dynamically, you often need to access AST nodes of your codebase as it is written. The built-in transformers erase already a lot of the AST making this information unavailable. With the help of this new
beforeDeclarations
you are able to access your full AST and use it to auto-generate your typescript declaration files.π» Use Cases
The text was updated successfully, but these errors were encountered: