UNPKG

tsro

Version:

TypeScript Remove Orphaned (tsro) is a CLI utility and library for TypeScript projects that detects and removes files containing invalid imports — imports that refer to nonexistent entities or nonexistent modules.

10 lines (9 loc) 198 B
export type Logger = { write(text: string): void; clearLine(dir: -1 | 0 | 1): void; cursorTo(x: number): void; isTTY: true; } | { write(text: string): void; isTTY: false; };