diff options
Diffstat (limited to 'node_modules/tslint/lib/runner.d.ts')
-rw-r--r-- | node_modules/tslint/lib/runner.d.ts | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/node_modules/tslint/lib/runner.d.ts b/node_modules/tslint/lib/runner.d.ts index d2347f34e..c544d4f03 100644 --- a/node_modules/tslint/lib/runner.d.ts +++ b/node_modules/tslint/lib/runner.d.ts @@ -1,5 +1,4 @@ -/// <reference types="node" /> -export interface IRunnerOptions { +export interface Options { /** * Path to a configuration file. */ @@ -56,16 +55,14 @@ export interface IRunnerOptions { * Whether to enable type checking when linting a project. */ typeCheck?: boolean; - /** - * Whether to show the current TSLint version. - */ - version?: boolean; } -export declare class Runner { - private options; - private outputStream; - private static trimSingleQuotes(str); - constructor(options: IRunnerOptions, outputStream: NodeJS.WritableStream); - run(onComplete: (status: number) => void): void; - private processFiles(onComplete, files, program?); +export declare const enum Status { + Ok = 0, + FatalError = 1, + LintError = 2, +} +export interface Logger { + log(message: string): void; + error(message: string): void; } +export declare function run(options: Options, logger: Logger): Promise<Status>; |