UNPKG

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