You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notably, the keyUsages argument in the first overload accepts readonly KeyUsage[], while the second overload requires a mutable array.
Web Cryptography API section 14.3.9 does not have any procedure that would mutate this argument.
Hence, this argument should accept readonly in both overloads.
The same problem also occurs in one of the overloads in deriveKey and generateKey and unwrapKey methods.
The text was updated successfully, but these errors were encountered:
As of
@types/web@0.0.208
, SubtleCrypto is declared as:Notably, the
keyUsages
argument in the first overload acceptsreadonly KeyUsage[]
, while the second overload requires a mutable array.Web Cryptography API section 14.3.9 does not have any procedure that would mutate this argument.
Hence, this argument should accept
readonly
in both overloads.The same problem also occurs in one of the overloads in
deriveKey
andgenerateKey
andunwrapKey
methods.The text was updated successfully, but these errors were encountered: