forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-typescript.d.ts
54 lines (45 loc) · 1.77 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
// 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;
sortOutput?: boolean;
target?: string;
typescript?: any;
}
interface Project {
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;
}