mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
chore(crypto): use WebIDL BufferSource in types (#11510)
This commit is contained in:
parent
865d9ddd51
commit
9e89fe2fe8
1 changed files with 4 additions and 48 deletions
52
extensions/crypto/lib.deno_crypto.d.ts
vendored
52
extensions/crypto/lib.deno_crypto.d.ts
vendored
|
@ -98,61 +98,17 @@ interface SubtleCrypto {
|
||||||
sign(
|
sign(
|
||||||
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams,
|
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams,
|
||||||
key: CryptoKey,
|
key: CryptoKey,
|
||||||
data:
|
data: BufferSource,
|
||||||
| Int8Array
|
|
||||||
| Int16Array
|
|
||||||
| Int32Array
|
|
||||||
| Uint8Array
|
|
||||||
| Uint16Array
|
|
||||||
| Uint32Array
|
|
||||||
| Uint8ClampedArray
|
|
||||||
| Float32Array
|
|
||||||
| Float64Array
|
|
||||||
| DataView
|
|
||||||
| ArrayBuffer,
|
|
||||||
): Promise<ArrayBuffer>;
|
): Promise<ArrayBuffer>;
|
||||||
verify(
|
verify(
|
||||||
algorithm: AlgorithmIdentifier | RsaPssParams,
|
algorithm: AlgorithmIdentifier | RsaPssParams,
|
||||||
key: CryptoKey,
|
key: CryptoKey,
|
||||||
signature:
|
signature: BufferSource,
|
||||||
| Int8Array
|
data: BufferSource,
|
||||||
| Int16Array
|
|
||||||
| Int32Array
|
|
||||||
| Uint8Array
|
|
||||||
| Uint16Array
|
|
||||||
| Uint32Array
|
|
||||||
| Uint8ClampedArray
|
|
||||||
| Float32Array
|
|
||||||
| Float64Array
|
|
||||||
| DataView
|
|
||||||
| ArrayBuffer,
|
|
||||||
data:
|
|
||||||
| Int8Array
|
|
||||||
| Int16Array
|
|
||||||
| Int32Array
|
|
||||||
| Uint8Array
|
|
||||||
| Uint16Array
|
|
||||||
| Uint32Array
|
|
||||||
| Uint8ClampedArray
|
|
||||||
| Float32Array
|
|
||||||
| Float64Array
|
|
||||||
| DataView
|
|
||||||
| ArrayBuffer,
|
|
||||||
): Promise<boolean>;
|
): Promise<boolean>;
|
||||||
digest(
|
digest(
|
||||||
algorithm: AlgorithmIdentifier,
|
algorithm: AlgorithmIdentifier,
|
||||||
data:
|
data: BufferSource,
|
||||||
| Int8Array
|
|
||||||
| Int16Array
|
|
||||||
| Int32Array
|
|
||||||
| Uint8Array
|
|
||||||
| Uint16Array
|
|
||||||
| Uint32Array
|
|
||||||
| Uint8ClampedArray
|
|
||||||
| Float32Array
|
|
||||||
| Float64Array
|
|
||||||
| DataView
|
|
||||||
| ArrayBuffer,
|
|
||||||
): Promise<ArrayBuffer>;
|
): Promise<ArrayBuffer>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue