mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
This should allow a developer to write a gulpfile in TypeScript to compile a TypeScript project.
43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
// 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?: Object;
|
|
rulesDirectory?: string;
|
|
emitError?: boolean;
|
|
}
|
|
|
|
interface Position {
|
|
position: number;
|
|
line: number;
|
|
character: number;
|
|
}
|
|
|
|
interface Output {
|
|
name: string;
|
|
failure: string;
|
|
startPosition: Position;
|
|
endPosition: Position;
|
|
ruleName: string;
|
|
}
|
|
|
|
export function report(reporter?: string): NodeJS.ReadWriteStream;
|
|
export function report(reporter?: (output: Output[], file: vinyl, options: Options) => any): NodeJS.ReadWriteStream;
|
|
|
|
}
|
|
|
|
export = GulpTsLint;
|
|
}
|
|
|