mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
27 lines
505 B
TypeScript
27 lines
505 B
TypeScript
|
// 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;
|
||
|
}
|