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

Allow multiple ambient declarations for same module

Open arshaw opened this issue 6 years ago • 1 comments

Writing ambient modules introduces the possibility of having multiple module declarations of the same name. dts-bundle chokes on this and says "already got export for...". I've modified the code to keep track of an array of module definitions in order to accommodate this use case. Fixes #72

It's unclear to me if the "already got export for" error is ever desirable for non-ambient modules, but my gut tells me no.

CC @eddow

arshaw avatar Jun 25 '19 15:06 arshaw

Travis is failing due to reasons unrelated to my code:

Running "mochaTest:all" (mochaTest) task
Warning: /home/travis/build/TypeStrong/dts-bundle/node_modules/grunt-mocha-test/node_modules/mocha/node_modules/debug/src/node.js:120
exports.inspectOpts = Object.keys(process.env).filter(key => {
                                                          ^^
Unexpected token => Use --force to continue.

arshaw avatar Jun 25 '19 15:06 arshaw