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
In TypeScript, when using built-in modules, we can import the typing definition named @types/node. Unlike other @types imports, this one does not use the module name, it is a single typing module for all built-in modules.
For that reason, this typing module is not detected as used.
Code snippets
Where the dependency is used:
import * as path from 'path';
Where the dependency is listed in package.json:
"devDependencies": {
"@types/node": "12.11.7"
}
Versions
node -v: any
npm -v: any
depcheck --version: 0.8.4
Extra info
I will provide a PR.
The text was updated successfully, but these errors were encountered:
Bug Description
In TypeScript, when using built-in modules, we can import the typing definition named
@types/node
. Unlike other@types
imports, this one does not use the module name, it is a single typing module for all built-in modules.For that reason, this typing module is not detected as used.
Code snippets
Where the dependency is used:
Where the dependency is listed in package.json:
Versions
node -v
: anynpm -v
: anydepcheck --version
: 0.8.4Extra info
I will provide a PR.
The text was updated successfully, but these errors were encountered: