diff --git a/lib/flow-typed/web-crypto-common.js b/lib/flow-typed/web-crypto-common.js --- a/lib/flow-typed/web-crypto-common.js +++ b/lib/flow-typed/web-crypto-common.js @@ -20,16 +20,7 @@ | 'wrapKey' | 'unwrapKey'; -declare type CryptoKey = { - +algorithm: - | SubtleCrypto$AesKeyGenParams - | SubtleCrypto$RsaHashedKeyGenParams - | SubtleCrypto$EcKeyGenParams - | SubtleCrypto$HmacKeyGenParams, - +extractable: boolean, - +type: CryptoKey$Type, - +usages: $ReadOnlyArray, -}; +declare type CryptoKey = SubtleCrypto$JsonWebKey; type SubtleCrypto$KeyFormatWithoutJwk = 'pkcs8' | 'raw' | 'spki'; type SubtleCrypto$KeyFormat = 'jwk' | SubtleCrypto$KeyFormatWithoutJwk;