diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/tslint/lib/runner.d.ts | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
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>; |