Skip to content

Commit 2346b6f

Browse files
refactor: fix types (#355)
1 parent 6118585 commit 2346b6f

15 files changed

Lines changed: 398 additions & 394 deletions

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
"*": ["prettier --write --ignore-unknown", "cspell"],
2+
"*": ["prettier --write --ignore-unknown", "cspell --no-must-find-files"],
33
"*.js": ["eslint --cache --fix"],
44
};

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"prettier": "^2.8.8",
8080
"standard-version": "^9.3.0",
8181
"typescript": "^4.9.5",
82-
"webpack": "^5.81.0",
82+
"webpack": "^5.83.1",
8383
"webpack-stats-plugin": "^1.1.1",
8484
"workbox-webpack-plugin": "^6.5.4"
8585
},

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ const schema = require("./options.json");
2424
* @typedef {T | { valueOf(): T }} WithImplicitCoercion
2525
*/
2626

27-
/** @typedef {string | RegExp | string[] | RegExp[]} Rule */
27+
/** @typedef {RegExp | string} Rule */
28+
/** @typedef {Rule[] | Rule} Rules */
2829

2930
/**
3031
* @typedef {{ [key: string]: any }} CustomOptions

0 commit comments

Comments
 (0)