When the JSDoc import of a type is used, dead-code-checker reports that the type isn't used.
-
foo.js
-
index.js
/**
* @import { Foo } from "./foo.js"
*/
/**
* @type {Foo}
*/
const foo;
npx dead-code-checker -f .
...
馃搧 index.js (2 items):
聽聽聽聽馃摜 import Foo (imported but not used)
...
When the JSDoc import of a type is used, dead-code-checker reports that the type isn't used.
foo.jsindex.jsnpx dead-code-checker -f .