GoScrobble/web/node_modules/fork-ts-checker-webpack-plugin/lib/IncrementalChecker.d.ts

28 lines
1.4 KiB
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import * as ts from 'typescript';
import { CancellationToken } from './CancellationToken';
import { IncrementalCheckerInterface, IncrementalCheckerParams } from './IncrementalCheckerInterface';
import { Issue } from './issue';
export declare class IncrementalChecker implements IncrementalCheckerInterface {
private files;
protected program?: ts.Program;
protected programConfig?: ts.ParsedCommandLine;
private readonly typescript;
private readonly programConfigFile;
private readonly compilerOptions;
private readonly eslinter;
private readonly vue;
private readonly checkSyntacticErrors;
private readonly resolveModuleName;
private readonly resolveTypeReferenceDirective;
constructor({ typescript, programConfigFile, compilerOptions, eslinter, vue, checkSyntacticErrors, resolveModuleName, resolveTypeReferenceDirective }: IncrementalCheckerParams);
static loadProgramConfig(typescript: typeof ts, configFile: string, compilerOptions: object): ts.ParsedCommandLine;
private static createProgram;
hasEsLinter(): boolean;
static isFileExcluded(filePath: string): boolean;
nextIteration(): void;
private loadVueProgram;
private loadDefaultProgram;
getTypeScriptIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
getEsLintIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
}