knip
Version:
Find unused files, dependencies and exports in your TypeScript and JavaScript projects
19 lines (18 loc) • 598 B
TypeScript
import type ts from 'typescript';
import type { AsyncCompilers, SyncCompilers } from '../compilers/types.js';
import type { ToSourceFilePath } from '../util/to-source-path.js';
export type Paths = ts.CompilerOptions['paths'];
export type PrincipalOptions = {
cwd: string;
isFile: boolean;
compilerOptions: ts.CompilerOptions;
paths: Paths;
compilers: [SyncCompilers, AsyncCompilers];
pkgName: string;
isIsolateWorkspaces: boolean;
isSkipLibs: boolean;
isWatch: boolean;
toSourceFilePath: ToSourceFilePath;
isCache: boolean;
cacheLocation: string;
};