norefs

Limitations

What counts as usage

The test suite verifies that the reference check resolves all of these — none of them produce false positives:

When norefs stays silent

Some consumption is invisible to static reference search. Rather than guess, norefs suppresses those findings entirely:

Remaining blind spots

Anonymous findings

Some findings point at inline types with no name to anchor them — a {x, y} parameter type on an anonymous callback, for instance. These are the most false-positive-prone: TypeScript’s reference search loses track of a value forwarded via shorthand into a differently-declared structural type, because the read then resolves to the other declaration. By default norefs reports only findings tied to a named interface, type alias, or function; pass --anon to include the anonymous ones too:

norefs --anon

← All docs