Skip to content

Commit

Permalink
chore(crypto): use WebIDL BufferSource in types (denoland#11510)
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Jul 26, 2021
1 parent 865d9dd commit 9e89fe2
Showing 1 changed file with 4 additions and 48 deletions.
52 changes: 4 additions & 48 deletions extensions/crypto/lib.deno_crypto.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}

Expand Down

0 comments on commit 9e89fe2

Please sign in to comment.