mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 21:54:48 +00:00
chore: move crypto types to op_crates/crypto (#9609)
This commit is contained in:
parent
07eb009044
commit
4b56537ea9
4 changed files with 38 additions and 22 deletions
26
op_crates/crypto/lib.deno_crypto.d.ts
vendored
Normal file
26
op_crates/crypto/lib.deno_crypto.d.ts
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
/// <reference no-default-lib="true" />
|
||||
/// <reference lib="esnext" />
|
||||
|
||||
declare var crypto: Crypto;
|
||||
|
||||
declare interface Crypto {
|
||||
readonly subtle: null;
|
||||
getRandomValues<
|
||||
T extends
|
||||
| Int8Array
|
||||
| Int16Array
|
||||
| Int32Array
|
||||
| Uint8Array
|
||||
| Uint16Array
|
||||
| Uint32Array
|
||||
| Uint8ClampedArray
|
||||
| Float32Array
|
||||
| Float64Array
|
||||
| DataView
|
||||
| null,
|
||||
>(
|
||||
array: T,
|
||||
): T;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue