diff options
author | Oliver Lenehan <sunsetkookaburra+github@outlook.com.au> | 2020-05-08 22:30:53 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 14:30:53 +0200 |
commit | a08a4abac116eda498f8ad2df13b3816ec36c9ad (patch) | |
tree | 261a52fe93fc184f8af9aaf037cd74f27a532f76 /cli/js/lib.deno.window.d.ts | |
parent | c0e8bae498b1892b994757b5f4972913c076a65e (diff) |
feat(workers): "crypto" global accessible in Worker scope (#5121)
Diffstat (limited to 'cli/js/lib.deno.window.d.ts')
-rw-r--r-- | cli/js/lib.deno.window.d.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/cli/js/lib.deno.window.d.ts b/cli/js/lib.deno.window.d.ts index 21619af4d..61c5abf8a 100644 --- a/cli/js/lib.deno.window.d.ts +++ b/cli/js/lib.deno.window.d.ts @@ -12,7 +12,6 @@ declare interface Window extends EventTarget { readonly self: Window & typeof globalThis; onload: ((this: Window, ev: Event) => any) | null; onunload: ((this: Window, ev: Event) => any) | null; - crypto: Crypto; close: () => void; readonly closed: boolean; Deno: typeof Deno; @@ -22,26 +21,5 @@ declare const window: Window & typeof globalThis; declare const self: Window & typeof globalThis; declare const onload: ((this: Window, ev: Event) => any) | null; declare const onunload: ((this: Window, ev: Event) => any) | null; -declare const 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; -} /* eslint-enable @typescript-eslint/no-explicit-any */ |