You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dts-generator is treating debug import as if it's an internal module. Probably due to recent update in typescript: the name node kind of import statement is Identifier rather than StringLiteral.
Here is the output for resolveModuleImport(params) { console.log(params) }:
They don't have a module declaration with string literal. Debug had an Identifier declaring namespace name (probably?). Pino doesn't have its name in declaration file at all.
Environment:
typescript
version: 3.3.3dts-generator
version: 3.0.0dts-generator
is treatingdebug
import as if it's an internal module. Probably due to recent update intypescript
: the name node kind of import statement isIdentifier
rather thanStringLiteral
.Here is the output for
resolveModuleImport(params) { console.log(params) }
:The
debug
module is listed as a dependency in package.json. Typings are also installed (@types/debug
).I suggest to add a check for name node kind to be an Identifier or a StringLiteral in
declaredExternalModules routine
.The text was updated successfully, but these errors were encountered: