TypeStrong / dts-bundle

Export TypeScript .d.ts files as an external module definition
MIT License
308 stars 57 forks source link

A 'declare' modifier is required for a top level declaration in a .d.ts file. #57

Open arrowfunxtion opened 6 years ago

arrowfunxtion commented 6 years ago

When I bundle outputAsModuleFolder : true, every top level const, var, or let will need a declare. But the declare modifier is removed inside the BundleResult.

arrowfunxtion commented 6 years ago

Refer to this https://stackoverflow.com/questions/17635033/error-ts1046-declare-modifier-required-for-top-level-element/17635034

teltploek commented 6 years ago

I have the same issue. Is there any way to have the bundle retain the declare modifier in the bundle result?

Bielik20 commented 5 years ago

I have created PR for this issue: https://github.com/TypeStrong/dts-bundle/pull/77

nilss0n commented 5 years ago

I also have the same issue, is there anything blocking #77 from being merged?