knip icon indicating copy to clipboard operation
knip copied to clipboard

Consider the file in package.json types not to be unused

Open fcostarodrigo opened this issue 9 months ago • 0 comments

In a lib written in JS with the type declared in an index.d.ts referenced in the package.json types field, knip reports index.d.ts as unused.

It would be nice if knip would recognize that this file is used because it exports the types.

Stack Blitz example: https://stackblitz.com/edit/stackblitz-starters-q7yeyg (run npm test)

fcostarodrigo avatar Apr 27 '24 13:04 fcostarodrigo