diff --git a/package-lock.json b/package-lock.json index 7261744..c488d24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@matrixai/async-locks": "^3.2.0" }, "devDependencies": { - "@matrixai/lint": "^0.2.4", + "@matrixai/lint": "^0.2.6", "@swc/core": "^1.3.62", "@swc/jest": "^0.2.26", "@types/jest": "^28.1.3", @@ -1441,9 +1441,9 @@ } }, "node_modules/@matrixai/lint": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@matrixai/lint/-/lint-0.2.4.tgz", - "integrity": "sha512-LaFiAmTMzGc0IItyJ+VlTE5Hcko0vAn0mXYd19SbNG+ubnLI3NIEEuHwIGJFJ84Y2Zid0/YOG69IrFQHnNmJjw==", + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/@matrixai/lint/-/lint-0.2.6.tgz", + "integrity": "sha512-Cbx6SCTAqSt7lTKkaXL7wB+KbkiXYpQ0LdV5fPcnzEfG0sCuG8dbJcwzgHT5Qn7ubG71BBLUVFjHY1EGADzT8g==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -1453,7 +1453,7 @@ "@typescript-eslint/parser": "^8.27.0", "@typescript-eslint/utils": "^8.26.1", "commander": "^13.1.0", - "eslint": ">=9.0.0", + "eslint": "^9.0.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", @@ -9956,9 +9956,9 @@ } }, "@matrixai/lint": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@matrixai/lint/-/lint-0.2.4.tgz", - "integrity": "sha512-LaFiAmTMzGc0IItyJ+VlTE5Hcko0vAn0mXYd19SbNG+ubnLI3NIEEuHwIGJFJ84Y2Zid0/YOG69IrFQHnNmJjw==", + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/@matrixai/lint/-/lint-0.2.6.tgz", + "integrity": "sha512-Cbx6SCTAqSt7lTKkaXL7wB+KbkiXYpQ0LdV5fPcnzEfG0sCuG8dbJcwzgHT5Qn7ubG71BBLUVFjHY1EGADzT8g==", "dev": true, "requires": { "@eslint/compat": "^1.2.5", @@ -9967,7 +9967,7 @@ "@typescript-eslint/parser": "^8.27.0", "@typescript-eslint/utils": "^8.26.1", "commander": "^13.1.0", - "eslint": ">=9.0.0", + "eslint": "^9.0.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", diff --git a/package.json b/package.json index db61036..ec44871 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@matrixai/async-locks": "^3.2.0" }, "devDependencies": { - "@matrixai/lint": "^0.2.4", + "@matrixai/lint": "^0.2.6", "@swc/core": "^1.3.62", "@swc/jest": "^0.2.26", "@types/jest": "^28.1.3", diff --git a/src/AsyncMonitor.ts b/src/AsyncMonitor.ts index ee28e93..486bc9f 100644 --- a/src/AsyncMonitor.ts +++ b/src/AsyncMonitor.ts @@ -56,7 +56,10 @@ function lock(...requests: Array) { } else if (descriptor.set != null) { kind = 'set'; } - const f: Function = descriptor[kind]; // eslint-disable-line @typescript-eslint/ban-types + + type AnyFn = (...args: unknown[]) => unknown; + + const f = descriptor[kind] as AnyFn; if (typeof f !== 'function') { throw new TypeError(`${key} is not a function`); }