1 | import { RpcProvider } from 'worker-rpc';
|
2 | import { FormatterType, FormatterOptions } from './formatter';
|
3 | import { VueOptions } from './types/vue-options';
|
4 | declare namespace ForkTsCheckerWebpackPlugin {
|
5 | interface Logger {
|
6 | error(message?: any): void;
|
7 | warn(message?: any): void;
|
8 | info(message?: any): void;
|
9 | }
|
10 | interface Options {
|
11 | typescript: string;
|
12 | tsconfig: string;
|
13 | compilerOptions: object;
|
14 | eslint: boolean;
|
15 |
|
16 | eslintOptions: object;
|
17 | async: boolean;
|
18 | ignoreDiagnostics: number[];
|
19 | ignoreLints: string[];
|
20 | ignoreLintWarnings: boolean;
|
21 | reportFiles: string[];
|
22 | logger: Logger;
|
23 | formatter: FormatterType;
|
24 | formatterOptions: FormatterOptions;
|
25 | silent: boolean;
|
26 | checkSyntacticErrors: boolean;
|
27 | memoryLimit: number;
|
28 | vue: boolean | Partial<VueOptions>;
|
29 | useTypescriptIncrementalApi: boolean;
|
30 | measureCompilationTime: boolean;
|
31 | resolveModuleNameModule: string;
|
32 | resolveTypeReferenceDirectiveModule: string;
|
33 | }
|
34 | }
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 | declare class ForkTsCheckerWebpackPlugin {
|
43 | static readonly DEFAULT_MEMORY_LIMIT = 2048;
|
44 | static getCompilerHooks(compiler: any): Record<import("./hooks").ForkTsCheckerHooks, import("tapable").SyncHook<any, any, any> | import("tapable").AsyncSeriesHook<any, any, any>>;
|
45 | readonly options: Partial<ForkTsCheckerWebpackPlugin.Options>;
|
46 | private tsconfig;
|
47 | private compilerOptions;
|
48 | private eslint;
|
49 | private eslintOptions;
|
50 | private ignoreDiagnostics;
|
51 | private ignoreLints;
|
52 | private ignoreLintWarnings;
|
53 | private reportFiles;
|
54 | private logger;
|
55 | private silent;
|
56 | private async;
|
57 | private checkSyntacticErrors;
|
58 | private memoryLimit;
|
59 | private formatter;
|
60 | private rawFormatter;
|
61 | private useTypescriptIncrementalApi;
|
62 | private resolveModuleNameModule;
|
63 | private resolveTypeReferenceDirectiveModule;
|
64 | private tsconfigPath;
|
65 | private compiler;
|
66 | private started;
|
67 | private elapsed;
|
68 | private cancellationToken;
|
69 | private isWatching;
|
70 | private checkDone;
|
71 | private compilationDone;
|
72 | private diagnostics;
|
73 | private lints;
|
74 | private emitCallback;
|
75 | private doneCallback;
|
76 | private typescriptPath;
|
77 | private typescript;
|
78 | private typescriptVersion;
|
79 | private eslintVersion;
|
80 | private service?;
|
81 | protected serviceRpc?: RpcProvider;
|
82 | private vue;
|
83 | private measureTime;
|
84 | private performance;
|
85 | private startAt;
|
86 | protected nodeArgs: string[];
|
87 | constructor(options?: Partial<ForkTsCheckerWebpackPlugin.Options>);
|
88 | private validateTypeScript;
|
89 | private validateEslint;
|
90 | private static prepareVueOptions;
|
91 | apply(compiler: any): void;
|
92 | private computeContextPath;
|
93 | private pluginStart;
|
94 | private pluginStop;
|
95 | private pluginCompile;
|
96 | private pluginEmit;
|
97 | private pluginDone;
|
98 | private spawnService;
|
99 | private killService;
|
100 | private handleServiceMessage;
|
101 | private handleServiceExit;
|
102 | private createEmitCallback;
|
103 | private createNoopEmitCallback;
|
104 | private printLoggerMessage;
|
105 | private createDoneCallback;
|
106 | }
|
107 | export = ForkTsCheckerWebpackPlugin;
|