-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathindex.d.ts
37 lines (37 loc) · 971 Bytes
/
index.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
/// <reference types="node" />
export interface PluginOptions {
configuration?: any;
fix?: boolean;
formatter?: string | Function;
formattersDirectory?: string;
rulesDirectory?: string;
tslint?: any;
program?: any;
}
export interface ReportOptions {
emitError?: boolean;
reportLimit?: number;
summarizeFailureOutput?: boolean;
allowWarnings?: boolean;
}
export interface TslintFile {
tslint: any;
path: string;
relative: string;
contents: Buffer | any;
isStream(): boolean;
isNull(): boolean;
}
export interface TslintPlugin {
(pluginOptions?: PluginOptions): NodeJS.ReadWriteStream;
report: (options?: ReportOptions) => NodeJS.ReadWriteStream;
pluginOptions: PluginOptions;
}
/**
* Main plugin function
* @param {PluginOptions} [pluginOptions] contains the options for gulp-tslint.
* Optional.
* @returns {any}
*/
declare const tslintPlugin: TslintPlugin;
export default tslintPlugin;