chore: update @types/node

This commit is contained in:
Filip Skokan 2021-07-15 11:06:33 +02:00
parent cdce59a340
commit 0fc9793904
3 changed files with 3 additions and 7 deletions

View file

@ -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",

View file

@ -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 <boolean>util.types.isKeyObject(obj)
return util.types.isKeyObject(obj)
}
} else {
impl = function isKeyObject(obj): obj is KeyObject {

View file

@ -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 <boolean>util.types.isCryptoKey(obj)
return util.types.isCryptoKey(obj)
}
} else if (webcrypto) {
impl = function isCryptoKey(obj): obj is CryptoKey {