dts-bundle icon indicating copy to clipboard operation
dts-bundle copied to clipboard

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

Open arrowfunxtion opened this issue 6 years ago • 4 comments

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 avatar Oct 30 '17 22:10 arrowfunxtion

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

arrowfunxtion avatar Oct 30 '17 22:10 arrowfunxtion

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

teltploek avatar May 31 '18 11:05 teltploek

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

Bielik20 avatar May 02 '19 10:05 Bielik20

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

nilss0n avatar Sep 12 '19 09:09 nilss0n