Skip to content

Commit da5a14f

Browse files
chore: update deps (#233)
1 parent 9523f0c commit da5a14f

File tree

5 files changed

+3297
-4529
lines changed

5 files changed

+3297
-4529
lines changed

declarations/getStylelint.d.ts

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
/** @typedef {import('stylelint')} Stylelint */
2-
/** @typedef {import('stylelint').LintResult} LintResult */
3-
/** @typedef {import('./options').Options} Options */
4-
/** @typedef {() => Promise<void>} AsyncTask */
5-
/** @typedef {(files: string|string[]) => Promise<LintResult[]>} LintTask */
6-
/** @typedef {JestWorker & {lintFiles: LintTask}} Worker */
7-
/** @typedef {{stylelint: Stylelint, lintFiles: LintTask, cleanup: AsyncTask, threads: number, }} Linter */
8-
/**
9-
* @param {Options} options
10-
* @returns {Linter}
11-
*/
12-
export function loadStylelint(options: Options): Linter;
13-
/**
14-
* @param {string|undefined} key
15-
* @param {number} poolSize
16-
* @param {Options} options
17-
* @returns {Linter}
18-
*/
19-
export function loadStylelintThreaded(
20-
key: string | undefined,
21-
poolSize: number,
22-
options: Options
23-
): Linter;
241
/**
252
* @param {string|undefined} key
263
* @param {Options} options
@@ -44,4 +21,4 @@ export type Linter = {
4421
cleanup: AsyncTask;
4522
threads: number;
4623
};
47-
import JestWorker from 'jest-worker';
24+
import { Worker as JestWorker } from 'jest-worker';

declarations/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ declare class StylelintWebpackPlugin {
3333
*/
3434
getContext(compiler: Compiler): string;
3535
/**
36+
* @param {string[]} glob
3637
* @param {Compiler} compiler
3738
* @param {Module} module
3839
* @returns {string[]}
3940
*/
40-
getFiles({ fileTimestamps }: Compiler, { buildInfo }: Module): string[];
41+
getFiles(glob: string[], compiler: Compiler, module: Module): string[];
4142
/**
4243
* @param {Map<string, null | FileSystemInfoEntry | "ignore">} fileTimestamps
4344
* @returns {string[]}

0 commit comments

Comments
 (0)