From 9e89fe2fe8061378d2e0d1371f17c5ccc4a351f3 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 26 Jul 2021 17:30:19 +0530 Subject: chore(crypto): use WebIDL BufferSource in types (#11510) --- extensions/crypto/lib.deno_crypto.d.ts | 52 +++------------------------------- 1 file changed, 4 insertions(+), 48 deletions(-) (limited to 'extensions/crypto/lib.deno_crypto.d.ts') 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; 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; digest( algorithm: AlgorithmIdentifier, - data: - | Int8Array - | Int16Array - | Int32Array - | Uint8Array - | Uint16Array - | Uint32Array - | Uint8ClampedArray - | Float32Array - | Float64Array - | DataView - | ArrayBuffer, + data: BufferSource, ): Promise; } -- cgit v1.2.3