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