diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-07-26 17:30:19 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-26 14:00:19 +0200 |
commit | 9e89fe2fe8061378d2e0d1371f17c5ccc4a351f3 (patch) | |
tree | 1433429b18187ecb11eed70fca2ad915fbab3a18 | |
parent | 865d9ddd51dcc8776bf8c3976057e2f29a1a5af2 (diff) |
chore(crypto): use WebIDL BufferSource in types (#11510)
-rw-r--r-- | extensions/crypto/lib.deno_crypto.d.ts | 52 |
1 files changed, 4 insertions, 48 deletions
diff --git a/extensions/crypto/lib.deno_crypto.d.ts b/extensions/crypto/lib.deno_crypto.d.ts index d4d42e581..a6e6dd98f 100644 --- a/extensions/crypto/lib.deno_crypto.d.ts +++ b/extensions/crypto/lib.deno_crypto.d.ts @@ -98,61 +98,17 @@ interface SubtleCrypto { sign( algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, - data: - | Int8Array - | Int16Array - | Int32Array - | Uint8Array - | Uint16Array - | Uint32Array - | Uint8ClampedArray - | Float32Array - | Float64Array - | DataView - | ArrayBuffer, + data: BufferSource, ): Promise<ArrayBuffer>; verify( algorithm: AlgorithmIdentifier | RsaPssParams, key: CryptoKey, - signature: - | Int8Array - | Int16Array - | Int32Array - | Uint8Array - | Uint16Array - | Uint32Array - | Uint8ClampedArray - | Float32Array - | Float64Array - | DataView - | ArrayBuffer, - data: - | Int8Array - | Int16Array - | Int32Array - | Uint8Array - | Uint16Array - | Uint32Array - | Uint8ClampedArray - | Float32Array - | Float64Array - | DataView - | ArrayBuffer, + signature: BufferSource, + data: BufferSource, ): Promise<boolean>; digest( algorithm: AlgorithmIdentifier, - data: - | Int8Array - | Int16Array - | Int32Array - | Uint8Array - | Uint16Array - | Uint32Array - | Uint8ClampedArray - | Float32Array - | Float64Array - | DataView - | ArrayBuffer, + data: BufferSource, ): Promise<ArrayBuffer>; } |