UNPKG

1.9 kBTypeScriptView Raw
1import * as ts from 'typescript';
2import * as _project from './project';
3import * as _reporter from './reporter';
4import { GetCustomTransformers } from './types';
5declare function compile(proj: _project.Project, theReporter?: _reporter.Reporter): compile.CompileStream;
6declare function compile(settings: compile.Settings, theReporter?: _reporter.Reporter): compile.CompileStream;
7declare function compile(): compile.CompileStream;
8declare module compile {
9 interface Settings {
10 out?: string;
11 outFile?: string;
12 outDir?: string;
13 allowNonTsExtensions?: boolean;
14 charset?: string;
15 codepage?: number;
16 declaration?: boolean;
17 locale?: string;
18 mapRoot?: string;
19 noEmitOnError?: boolean;
20 noImplicitAny?: boolean;
21 noLib?: boolean;
22 noLibCheck?: boolean;
23 noResolve?: boolean;
24 preserveConstEnums?: boolean;
25 removeComments?: boolean;
26 suppressImplicitAnyIndexErrors?: boolean;
27 target?: string | ts.ScriptTarget;
28 module?: string | ts.ModuleKind;
29 moduleResolution?: string | number;
30 jsx?: string | number;
31 declarationFiles?: boolean;
32 noExternalResolve?: boolean;
33 sortOutput?: boolean;
34 getCustomTransformers?: GetCustomTransformers;
35 typescript?: typeof ts;
36 isolatedModules?: boolean;
37 rootDir?: string;
38 rootDirs?: any;
39 lib?: string[];
40 experimentalDecorators?: boolean;
41 [name: string]: any;
42 sourceRoot?: string;
43 }
44 type Project = _project.Project;
45 type CompileStream = _project.ICompileStream;
46 export import reporter = _reporter;
47 function createProject(tsConfigFileName: string, settings?: Settings): Project;
48 function createProject(settings?: Settings): Project;
49 function filter(...args: any[]): void;
50}
51export = compile;