UNPKG

1.06 kBTypeScriptView Raw
1export = StylelintWebpackPlugin;
2declare class StylelintWebpackPlugin {
3 /**
4 * @param {Options} options
5 */
6 constructor(options?: Options);
7 key: string;
8 options: Partial<import('./options').PluginOptions>;
9 /**
10 * @param {Compiler} compiler
11 * @param {Options} options
12 * @param {string[]} wanted
13 * @param {string[]} exclude
14 */
15 run(
16 compiler: Compiler,
17 options: Options,
18 wanted: string[],
19 exclude: string[],
20 ): Promise<void>;
21 startTime: number;
22 prevTimestamps: Map<any, any>;
23 /**
24 * @param {Compiler} compiler
25 * @returns {void}
26 */
27 apply(compiler: Compiler): void;
28 /**
29 *
30 * @param {Compiler} compiler
31 * @returns {string}
32 */
33 getContext(compiler: Compiler): string;
34}
35declare namespace StylelintWebpackPlugin {
36 export { Compiler, Module, Options, FileSystemInfoEntry };
37}
38type Compiler = import('webpack').Compiler;
39type Module = import('webpack').Module;
40type Options = import('./options').Options;
41type FileSystemInfoEntry = Partial<
42 | {
43 timestamp: number;
44 }
45 | number
46>;