Doctor · dead code
DOC0008Review an unreachable type export
A named type export has no known reverse reference and its file is unreachable.
vite-doctor/coredead-codeinfoNo fix
workspace/dead-code/unused-type-exportsrc/core/internal/workspace-graph.tsWhy it happens
Doctor found an exported type in a source file that is not reachable from recognized roots, with no name-level reverse reference. Recognized type surfaces, including .d.ts files and types directories, are excluded. The analysis does not prove that consumers outside the project have stopped using a public type.
Fix
Remove a private unused type, import it from reachable code, or expose its source through the appropriate package type entrypoint. Check downstream consumers before removing a public type. Use a scoped suppression when its intended use is outside the analyzed project.
Verify the fix
Rerun the workspace analysis after editing:
pnpm vite-doctor . --analyses dead-code
Related rule
workspace/dead-code/unused-type-export