Closed koloboid closed 8 years ago
dts-bundle works with what is output by typescript compiler: it starts with main file and then traverses files reachable from there.
If typings are included as a reference path, but the referenced file uses global symbols, there will be no import statement required. But the reference path must still be maintained so the dts file is complete.
Edit: I retract my comment, but am leaving it for reference. Including reference paths the bundle is not a good idea, particularly for libraries because it can easily lead to multiple references of a dependency and duplicate identifiers.
I close it for now.
Hello. How to force dts-bundle keep unused external typings in output definition? Thanks for advice.