Idea: Can declaration emit synthesize type aliases? #44045
Labels
Domain: Performance
Reports of unusually slow behavior
Experimentation Needed
Someone needs to try this out to see what happens
Suggestion
An idea for TypeScript
Object types can be very large and in (e.g.) a react project that makes heavy use of type inference, it's not uncommon to have to refer to a type that is either not imported or is simply anonymous (e.g. a props type). When these appear in multiple places in a declaration file, they tend to expand it considerably. Perhaps we could just synthesize type aliases for them?
type id =
andid
at the use site)The text was updated successfully, but these errors were encountered: