No ways to do an alias of an exported type inside a namespace #40771
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
Milestone
TypeScript Version: 3.9.7
Search Terms:
export type alias namespace
Code
With import type, in case of long namespaces encapsulation, there's no way to do an alias of the namespaces.
We are forced to alias the final types / interfaces
file types.ts
file namespace1.ts
file namespace2.ts
file finalUsage.ts
Expected behavior:
we need a way to make a shortcut of namespaces2.namespace1
Actual behavior:
Cannot do it: we are forced to aliasthe final types namespaces2.namespace1.A
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: