forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-tslint.d.ts
50 lines (41 loc) · 1.41 KB
/
gulp-tslint.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
// Type definitions for gulp-tslint 3.6.0
// Project: https://github.com/panuhorsmalahti/gulp-tslint
// Definitions by: Asana <https://asana.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts"/>
/// <reference path="../vinyl/vinyl.d.ts"/>
declare module "gulp-tslint" {
import vinyl = require("vinyl");
namespace gulpTsLint {
interface GulpTsLint {
(options?: Options): NodeJS.ReadWriteStream;
report(reporter?: Reporter, options?: ReportOptions): NodeJS.ReadWriteStream;
report(options?: ReportOptions): NodeJS.ReadWriteStream;
}
interface Options {
configuration?: {},
rulesDirectory?: string,
tslint?: GulpTsLint
}
interface ReportOptions {
emitError?: boolean,
reportLimit?: number,
summarizeFailureOutput?: boolean
}
interface Position {
position: number;
line: number;
character: number;
}
interface Output {
name: string;
failure: string;
startPosition: Position;
endPosition: Position;
ruleName: string;
}
type Reporter = string|((output: Output[], file: vinyl, options: ReportOptions) => any);
}
var gulpTsLint: gulpTsLint.GulpTsLint;
export = gulpTsLint;
}