Consider @types
packages for used dependencies as used even without TypeScript
#866
Labels
@types
packages for used dependencies as used even without TypeScript
#866
Bug Description
Currently
@types/...
packages for used dependencies are only considered to be used when the TypeScript parser is used:depcheck/src/check.js
Lines 140 to 151 in 77fe0e2
I'd prefer to consider them used for all parsers (or at least have an option to), because they allow seeing the dependency types in the IDE while developing.
Code snippets
Where the dependency is used:
Where the dependency is listed in package.json:
Versions
node -v
: v18.17.0npm -v
: 9.6.7depcheck --version
: 1.4.7Extra info
Any extra info you want to include. Thank you for the bug report!
BONUS POINTS: If you wish to help us debug further, the
depcheck --json
option will show more information. Check here in the README for documentation on json output.The text was updated successfully, but these errors were encountered: