forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulp-tslint.d.ts
43 lines (33 loc) · 1.19 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
// Type definitions for gulp-tslint
// Project: https://github.com/panuhorsmalahti/gulp-tslint
// Definitions by: Asana <https://asana.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts"/>
/// <reference path="../vinyl/vinyl.d.ts"/>
declare module "gulp-tslint" {
import vinyl = require("vinyl");
function GulpTsLint(opts?: GulpTsLint.Options): NodeJS.ReadWriteStream;
module GulpTsLint {
interface Options {
configuration?: {};
rulesDirectory?: string;
emitError?: 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: Options) => any);
export function report(reporter?: Reporter, options?: Options): NodeJS.ReadWriteStream;
export function report(options?: Options): NodeJS.ReadWriteStream;
}
export = GulpTsLint;
}