- Notifications
You must be signed in to change notification settings - Fork13.2k
Closed
Milestone
Description
TypeScript Version: 3.8.0-dev.20200123
Search Terms: type only import merged namesapce
Code
// file1.tsexportinterfaceFoo{}exportnamespaceFoo{exportconstx=1;}// file2.tsimporttype{Foo}from"./file1";declarefunctionf():Foo;// (1)
Expected behavior:
- No error
Actual behavior:
- Error:
Cannot use namespace 'Foo' as a type.
Playground Link:
Related Issues: