UNPKG

521 BTypeScriptView Raw
1export interface TSConfig {
2 compilerOptions: {
3 rootDirs?: string[];
4 outDir?: string;
5 target?: string;
6 };
7}
8/**
9 * convert a path from the compiled ./lib files to the ./src typescript source
10 * this is for developing typescript plugins/CLIs
11 * if there is a tsconfig and the original sources exist, it attempts to require ts-
12 */
13export declare function tsPath(root: string, orig: string): string;
14export declare function tsPath(root: string, orig: string | undefined): string | undefined;