chore: move crypto types to op_crates/crypto (#9609)

This commit is contained in:
Divy Srivastava 2021-02-26 22:36:26 +05:30 committed by GitHub
parent 07eb009044
commit 4b56537ea9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 22 deletions

View file

@ -8,6 +8,7 @@
/// <reference lib="deno.web" />
/// <reference lib="deno.fetch" />
/// <reference lib="deno.websocket" />
/// <reference lib="deno.crypto" />
declare namespace WebAssembly {
/**
@ -343,8 +344,6 @@ interface VoidFunction {
*/
declare function queueMicrotask(func: VoidFunction): void;
declare var crypto: Crypto;
/** Registers an event listener in the global scope, which will be called
* synchronously whenever the event `type` is dispatched.
*
@ -416,26 +415,6 @@ declare interface Console {
declare var console: Console;
declare interface Crypto {
readonly subtle: null;
getRandomValues<
T extends
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| null,
>(
array: T,
): T;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
origin?: string;