https://knip.dev/reference/known-issues#definitely-typed-packages-in-dependencies
Is there a way for knip to automatically detect types that are automatically loaded globally? For example I have these in my ignoredDependencies
"@types/chrome",
"@types/dom-navigation",
"@types/trusted-types",
"@types/webpack-env",
"@types/gapi.client",
"@types/gapi.client.drive-v3",
"@types/gapi.client.oauth2-v2",
"@types/gapi.client.sheets-v4",
I tried searching on the website and on the repo but I was unable to find an answer.
I suppose the "right" way would be to list them in tsconfig
's compilerOptions.types
instead of letting TypeScript automatically include them all, but from knip's point of view they're ignored/unchecked just the same way.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too