forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 9
/
gulp-typescript.d.ts
48 lines (40 loc) · 1.54 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
// Type definitions for gulp-typescript
// Project: https://github.com/ivogabe/gulp-typescript
// Definitions by: Asana <https://asana.com>
// 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): Params;
export function filter(filters: FilterSettings): CompilationStream;
interface Params {
declarationFiles?: boolean;
module?: string;
noEmitOnError?: boolean;
noExternalResolve?: boolean;
noImplicitAny?: boolean;
noLib?: boolean;
removeComments?: boolean;
sourceRoot?: string;
sortOutput?: boolean;
target?: string;
}
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;
}