index.d.ts
3.43 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import { RpcProvider } from 'worker-rpc';
import { FormatterType, FormatterOptions } from './formatter';
import { VueOptions } from './types/vue-options';
import { Options as EslintOptions } from './types/eslint';
declare namespace ForkTsCheckerWebpackPlugin {
interface Logger {
error(message?: any): void;
warn(message?: any): void;
info(message?: any): void;
}
interface Options {
typescript: string;
tsconfig: string;
compilerOptions: object;
eslint: boolean;
/** Options to supply to eslint https://eslint.org/docs/developer-guide/nodejs-api#cliengine */
eslintOptions: EslintOptions;
async: boolean;
ignoreDiagnostics: number[];
ignoreLints: string[];
ignoreLintWarnings: boolean;
reportFiles: string[];
logger: Logger;
formatter: FormatterType;
formatterOptions: FormatterOptions;
silent: boolean;
checkSyntacticErrors: boolean;
memoryLimit: number;
vue: boolean | Partial<VueOptions>;
useTypescriptIncrementalApi: boolean;
measureCompilationTime: boolean;
resolveModuleNameModule: string;
resolveTypeReferenceDirectiveModule: string;
}
}
/**
* ForkTsCheckerWebpackPlugin
* Runs typescript type checker and linter on separate process.
* This speed-ups build a lot.
*
* Options description in README.md
*/
declare class ForkTsCheckerWebpackPlugin {
static readonly DEFAULT_MEMORY_LIMIT = 2048;
static getCompilerHooks(compiler: any): Record<import("./hooks").ForkTsCheckerHooks, import("tapable").SyncHook<any, any, any> | import("tapable").AsyncSeriesHook<any, any, any>>;
readonly options: Partial<ForkTsCheckerWebpackPlugin.Options>;
private tsconfig;
private compilerOptions;
private eslint;
private eslintOptions;
private ignoreDiagnostics;
private ignoreLints;
private ignoreLintWarnings;
private reportFiles;
private logger;
private silent;
private async;
private checkSyntacticErrors;
private memoryLimit;
private formatter;
private rawFormatter;
private useTypescriptIncrementalApi;
private resolveModuleNameModule;
private resolveTypeReferenceDirectiveModule;
private tsconfigPath;
private compiler;
private started;
private elapsed;
private cancellationToken;
private isWatching;
private checkDone;
private compilationDone;
private diagnostics;
private lints;
private emitCallback;
private doneCallback;
private typescriptPath;
private typescript;
private typescriptVersion;
private eslintVersion;
private service?;
protected serviceRpc?: RpcProvider;
private vue;
private measureTime;
private performance;
private startAt;
protected nodeArgs: string[];
constructor(options?: Partial<ForkTsCheckerWebpackPlugin.Options>);
private validateTypeScript;
private validateEslint;
private static prepareVueOptions;
apply(compiler: any): void;
private computeContextPath;
private pluginStart;
private pluginStop;
private pluginCompile;
private pluginEmit;
private pluginDone;
private spawnService;
private killService;
private handleServiceMessage;
private handleServiceExit;
private createEmitCallback;
private createNoopEmitCallback;
private printLoggerMessage;
private createDoneCallback;
}
export = ForkTsCheckerWebpackPlugin;