Several crypto APIs incorrectly have have ArrayBuffer
input types instead of BufferSource
#2549
Labels
types
Related to @cloudflare/workers-types
Just to name the examples that I've encountered:
SubtleCryptoEncryptAlgorithm.iv
SubtleCryptoEncryptAlgorithm.counter
SubtleCryptoGenerateKeyAlgorithm.publicExponent
I suspect there could be many other instances too.
These have the
ArrayBuffer
type which is incorrectly too restrictive when they should have theBufferSource
type (which acceptsArrayBuffer
,TypedArray
s andDataView
as per the spec).The text was updated successfully, but these errors were encountered: