1 |
|
2 |
|
3 |
|
4 | declare module "ts-compiler" {
|
5 | import ts = require('typescript-api');
|
6 | import events = require('events');
|
7 |
|
8 | export function compile(files: string[], callback?: Function): void;
|
9 | export function compile(files: string[], options?: any, callback?: Function): void;
|
10 | export interface ICompilerOptions {
|
11 | declaration?: boolean;
|
12 | help?: boolean;
|
13 | mapRoot?: string;
|
14 | module?: string;
|
15 | noImplicitAny?: boolean;
|
16 | noResolve?: boolean;
|
17 | out?: string;
|
18 | outDir?: string;
|
19 | removeComments?: boolean;
|
20 | sourcemap?: boolean;
|
21 | sourceRoot?: string;
|
22 | target?: string;
|
23 | version?: string;
|
24 | watch?: boolean;
|
25 | optionsFile?: string;
|
26 | skipWrite?: boolean;
|
27 | }
|
28 | export class BatchCompiler extends events.EventEmitter {
|
29 | private _skipWrite;
|
30 | private _compiler;
|
31 | constructor();
|
32 | private redirectErrors();
|
33 | public compile(files: string[], callback?: Function): void;
|
34 | public compile(files: string[], options?: any, callback?: Function): void;
|
35 | private _batchCompile(callback);
|
36 | private _compile(callback);
|
37 | }
|
38 | export class OutputFile extends ts.OutputFile {
|
39 | }
|
40 | }
|