mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +00:00
fix(dts): specify the underlying buffer type in more places (#30640)
This commit is contained in:
parent
e02e4c2042
commit
a3a904da14
6 changed files with 35 additions and 28 deletions
26
cli/tsc/dts/lib.deno_crypto.d.ts
vendored
26
cli/tsc/dts/lib.deno_crypto.d.ts
vendored
|
@ -38,6 +38,8 @@ type KeyUsage =
|
|||
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
||||
/** @category Crypto */
|
||||
type NamedCurve = string;
|
||||
/** @category Crypto */
|
||||
type BigInteger = Uint8Array<ArrayBuffer>;
|
||||
|
||||
/** @category Crypto */
|
||||
interface RsaOtherPrimesInfo {
|
||||
|
@ -121,7 +123,7 @@ interface RsaHashedKeyGenParams extends RsaKeyGenParams {
|
|||
/** @category Crypto */
|
||||
interface RsaKeyGenParams extends Algorithm {
|
||||
modulusLength: number;
|
||||
publicExponent: Uint8Array;
|
||||
publicExponent: BigInteger;
|
||||
}
|
||||
|
||||
/** @category Crypto */
|
||||
|
@ -131,7 +133,7 @@ interface RsaPssParams extends Algorithm {
|
|||
|
||||
/** @category Crypto */
|
||||
interface RsaOaepParams extends Algorithm {
|
||||
label?: Uint8Array;
|
||||
label?: BufferSource;
|
||||
}
|
||||
|
||||
/** @category Crypto */
|
||||
|
@ -159,7 +161,7 @@ interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
|
|||
/** @category Crypto */
|
||||
interface RsaKeyAlgorithm extends KeyAlgorithm {
|
||||
modulusLength: number;
|
||||
publicExponent: Uint8Array;
|
||||
publicExponent: BigInteger;
|
||||
}
|
||||
|
||||
/** @category Crypto */
|
||||
|
@ -651,15 +653,15 @@ interface Crypto {
|
|||
*/
|
||||
getRandomValues<
|
||||
T extends
|
||||
| Int8Array
|
||||
| Int16Array
|
||||
| Int32Array
|
||||
| Uint8Array
|
||||
| Uint16Array
|
||||
| Uint32Array
|
||||
| Uint8ClampedArray
|
||||
| BigInt64Array
|
||||
| BigUint64Array,
|
||||
| Int8Array<ArrayBuffer>
|
||||
| Int16Array<ArrayBuffer>
|
||||
| Int32Array<ArrayBuffer>
|
||||
| Uint8Array<ArrayBuffer>
|
||||
| Uint16Array<ArrayBuffer>
|
||||
| Uint32Array<ArrayBuffer>
|
||||
| Uint8ClampedArray<ArrayBuffer>
|
||||
| BigInt64Array<ArrayBuffer>
|
||||
| BigUint64Array<ArrayBuffer>,
|
||||
>(
|
||||
array: T,
|
||||
): T;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue