UNPKG

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