import member from export as namespace library does not import types #16155
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 2.3.3
Code
outputs this index.d.ts:
Expected behavior:
The output .d.ts file will include an import for the relevant type from 'reselect'.
Actual behavior:
The output .d.ts file attempts to access Reselect as a global namespace. Any downstream consumer that imports from this code will error.
A full example can be found here:
https://github.com/cwmoo740/typescript-export-as-bug
The text was updated successfully, but these errors were encountered: