diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-02-26 22:36:26 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 12:06:26 -0500 |
commit | 4b56537ea9d5c3e5f60ca817ed00c55dcbb2131c (patch) | |
tree | 175b10666df4af715268dc3a32306214c0a88859 /cli/dts/lib.deno.shared_globals.d.ts | |
parent | 07eb0090445c22001ba50e71359839250c1b749a (diff) |
chore: move crypto types to op_crates/crypto (#9609)
Diffstat (limited to 'cli/dts/lib.deno.shared_globals.d.ts')
-rw-r--r-- | cli/dts/lib.deno.shared_globals.d.ts | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/cli/dts/lib.deno.shared_globals.d.ts b/cli/dts/lib.deno.shared_globals.d.ts index 9cfe45cfa..4332b757b 100644 --- a/cli/dts/lib.deno.shared_globals.d.ts +++ b/cli/dts/lib.deno.shared_globals.d.ts @@ -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; |