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
Then there's --include nsExports but the destructured ...mod1Exports is something Knip is unable to follow further.
And there's --include-libs to hand it over to TypeScript internals (which should be documented better for this use case), but even LS.findReferences doesn't find it. You could verify in your IDE with a "Find All References" from export function bar: this won't bring you to it's usage.
DreierF
changed the title
🐛 False positive unused export for barrel like file
🐛 False positive unused export
Dec 22, 2024
Yeah, didn't know a more fitting term for this construct. However IntelliJ is able to follow along this usage path, but it might use an internal heuristic there.
Prerequisites
Reproduction url
https://stackblitz.com/edit/github-99dfwi73-hxo2rmv8?file=index.ts
Reproduction access
Description of the issue
Observed behavior
The example produces:
while
bar
is actually used inindex.ts
.Expected behavior
No error
The text was updated successfully, but these errors were encountered: