forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-typescript.d.ts
73 lines (63 loc) · 2.43 KB
/
gulp-typescript.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// Type definitions for gulp-typescript
// Project: https://github.com/ivogabe/gulp-typescript
// Definitions by: Asana <https://asana.com>, Thomas Corbière <https://github.com/tomc974>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts"/>
declare module "gulp-typescript" {
function GulpTypescript(params?: GulpTypescript.Params, filters?: GulpTypescript.FilterSettings, reporter?: GulpTypescript.Reporter): GulpTypescript.CompilationStream;
module GulpTypescript {
export function createProject(params?: Params): Project;
export function createProject(file: string, params?: Params): Project;
export function filter(filters: FilterSettings): CompilationStream;
interface Params {
declarationFiles?: boolean;
module?: string;
noEmitOnError?: boolean;
noExternalResolve?: boolean;
noImplicitAny?: boolean;
noLib?: boolean;
removeComments?: boolean;
sourceRoot?: string; // use gulp-sourcemaps instead
sortOutput?: boolean;
target?: string;
typescript?: any;
outFile?: string;
outDir?: string;
suppressImplicitAnyIndexErrors?: boolean;
jsx?: string;
declaration?: boolean;
emitDecoratorMetadata?: boolean;
experimentalDecorators?: boolean;
experimentalAsyncFunctions?: boolean;
moduleResolution?: string;
noEmitHelpers?: boolean;
preserveConstEnums?: boolean;
isolatedModules?: boolean;
}
interface TsConfig {
files?: string[];
exclude?: string[];
compilerOptions?: any;
}
interface Project {
config: TsConfig;
src(): NodeJS.ReadWriteStream;
}
interface FilterSettings {
referencedFrom?: string[];
}
interface Reporter {
error(error: any): void;
}
interface CompilationStream extends NodeJS.ReadWriteStream {
dts: NodeJS.ReadWriteStream;
js: NodeJS.ReadWriteStream;
}
module reporter {
function nullReporter(): Reporter;
function defaultReporter(): Reporter;
function fullReporter(showFullFilename?: boolean): Reporter;
}
}
export = GulpTypescript;
}