mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
// 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;
|
|
}
|