diff --git a/package.json b/package.json index 2ede5724..28da772c 100644 --- a/package.json +++ b/package.json @@ -350,7 +350,7 @@ "test-webcrypto": "WEBCRYPTO=true npm test" }, "devDependencies": { - "@types/node": "^16.0.0", + "@types/node": "^16.3.2", "@typescript-eslint/eslint-plugin": "^4.28.0", "ava": "^3.13.0", "bowser": "^2.11.0", diff --git a/src/runtime/node/is_key_object.ts b/src/runtime/node/is_key_object.ts index 9b09cd66..75963f03 100644 --- a/src/runtime/node/is_key_object.ts +++ b/src/runtime/node/is_key_object.ts @@ -4,11 +4,9 @@ import * as util from 'util' // eslint-disable-next-line import/no-mutable-exports let impl: (obj: unknown) => obj is KeyObject -// @ts-expect-error if (util.types.isKeyObject) { impl = function isKeyObject(obj): obj is KeyObject { - // @ts-expect-error - return util.types.isKeyObject(obj) + return util.types.isKeyObject(obj) } } else { impl = function isKeyObject(obj): obj is KeyObject { diff --git a/src/runtime/node/webcrypto.ts b/src/runtime/node/webcrypto.ts index 51a4d984..90309c34 100644 --- a/src/runtime/node/webcrypto.ts +++ b/src/runtime/node/webcrypto.ts @@ -8,11 +8,9 @@ export default webcrypto let impl: (obj: unknown) => obj is CryptoKey -// @ts-expect-error if (util.types.isCryptoKey) { impl = function isCryptoKey(obj): obj is CryptoKey { - // @ts-expect-error - return util.types.isCryptoKey(obj) + return util.types.isCryptoKey(obj) } } else if (webcrypto) { impl = function isCryptoKey(obj): obj is CryptoKey {