1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | import * as ts from 'typescript';
|
10 | import { Diagnostics, ParsedConfiguration } from './perform_compile';
|
11 | import * as api from './transformers/api';
|
12 | export declare enum FileChangeEvent {
|
13 | Change = 0,
|
14 | CreateDelete = 1,
|
15 | CreateDeleteDir = 2
|
16 | }
|
17 | export interface PerformWatchHost {
|
18 | reportDiagnostics(diagnostics: Diagnostics): void;
|
19 | readConfiguration(): ParsedConfiguration;
|
20 | createCompilerHost(options: api.CompilerOptions): api.CompilerHost;
|
21 | createEmitCallback(options: api.CompilerOptions): api.TsEmitCallback | undefined;
|
22 | onFileChange(options: api.CompilerOptions, listener: (event: FileChangeEvent, fileName: string) => void, ready: () => void): {
|
23 | close: () => void;
|
24 | };
|
25 | setTimeout(callback: () => void, ms: number): any;
|
26 | clearTimeout(timeoutId: any): void;
|
27 | }
|
28 | export declare function createPerformWatchHost(configFileName: string, reportDiagnostics: (diagnostics: Diagnostics) => void, existingOptions?: ts.CompilerOptions, createEmitCallback?: (options: api.CompilerOptions) => api.TsEmitCallback | undefined): PerformWatchHost;
|
29 |
|
30 |
|
31 |
|
32 | export declare function performWatchCompilation(host: PerformWatchHost): {
|
33 | close: () => void;
|
34 | ready: (cb: () => void) => void;
|
35 | firstCompileResult: Diagnostics;
|
36 | };
|