Missing exports in declarations, when destructing is used #17085
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.4.1
Code
src/foo.ts
:src/index.ts
:package.json
:tsconfig.json
:Run
$ npm install && npm run build
.Expected behavior:
dist/foo.d.ts
:dist/index.d.ts
:Actual behavior:
dist/foo.d.ts
:dist/index.d.ts
:Note:
This would fail, too:
This works:
The text was updated successfully, but these errors were encountered: