UNPKG

723 BTypeScriptView Raw
1import { BuildContext, ChangedFile } from './util/interfaces';
2export interface LintWorkerConfig {
3 tsConfig: string;
4 tsLintConfig: string | null;
5 filePaths?: string[];
6 typeCheck?: boolean;
7}
8export declare function lint(context: BuildContext, tsLintConfig?: string | null, typeCheck?: boolean): Promise<void>;
9export declare function lintWorker(context: BuildContext, {tsConfig, tsLintConfig, typeCheck}: LintWorkerConfig): Promise<void>;
10export declare function lintUpdate(changedFiles: ChangedFile[], context: BuildContext, typeCheck?: boolean): Promise<{}>;
11export declare function lintUpdateWorker(context: BuildContext, {tsConfig, tsLintConfig, filePaths, typeCheck}: LintWorkerConfig): Promise<void>;