1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import * as path from 'path';
|
10 | import ts from 'typescript';
|
11 | import { CompilerHost, CompilerOptions, Program } from './api';
|
12 | export declare function setTempProgramHandlerForTest(handler: (program: ts.Program) => void): void;
|
13 | export declare function resetTempProgramHandlerForTest(): void;
|
14 | export declare function createProgram({ rootNames, options, host, oldProgram }: {
|
15 | rootNames: ReadonlyArray<string>;
|
16 | options: CompilerOptions;
|
17 | host: CompilerHost;
|
18 | oldProgram?: Program;
|
19 | }): Program;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export declare function createSrcToOutPathMapper(outDir: string | undefined, sampleSrcFileName: string | undefined, sampleOutFileName: string | undefined, host?: {
|
31 | dirname: typeof path.dirname;
|
32 | resolve: typeof path.resolve;
|
33 | relative: typeof path.relative;
|
34 | }): (srcFileName: string) => string;
|