Currently if you have the following file m1.ts
exportdefaultfunctionDecl(){return0;}exportinterfaceDecl{p1: number;p2: number;}exportnamespaceDecl{exportvarx=10;exportvary=20;interfaceI{}}trying to import m1.ts with a default binding will not give you all meanings of the exported entity:
importEntityfrom"m1"Entity();varx: Entity;// errorvary: Entity.I;// errorEntity.x;// errorEntity.y;// error
Discussed this with Jason Freeman (@JsonFreeman) and Vladimir Matveev (@vladima), will try to elaborate more, but this issue should serve as a discussion point for suggestions, since there are certain interesting cases like non-exported uninstantiated namespaces.
Currently if you have the following file
m1.tstrying to import
m1.tswith a default binding will not give you all meanings of the exported entity:Discussed this with Jason Freeman (@JsonFreeman) and Vladimir Matveev (@vladima), will try to elaborate more, but this issue should serve as a discussion point for suggestions, since there are certain interesting cases like non-exported uninstantiated namespaces.