When non-ambient declarations in a module `.d.ts` file is imported and referenced by another `.d.ts`, it will have an incorrect name. Here is a repro: https://github.com/theseanl/tsickle-ambient-externs-bug: execute `node invoke_tsickle.js` to generate `externs.js`, then its [line 46](https://github.com/theseanl/tsickle-ambient-externs-bug/blob/master/externs.js#L46) contains an identifier that is nowhere defined.
When non-ambient declarations in a module
.d.tsfile is imported and referenced by another.d.ts, it will have an incorrect name.Here is a repro: https://github.com/theseanl/tsickle-ambient-externs-bug: execute
node invoke_tsickle.jsto generateexterns.js, then its line 46 contains an identifier that is nowhere defined.