2020-01-29 12:54:23 -05:00
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
|
|
|
2020-04-11 11:42:02 -04:00
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
2020-01-29 12:54:23 -05:00
|
|
|
|
|
|
|
/// <reference no-default-lib="true" />
|
2020-02-19 00:34:11 -05:00
|
|
|
/// <reference lib="deno.ns" />
|
|
|
|
/// <reference lib="deno.shared_globals" />
|
2020-01-29 12:54:23 -05:00
|
|
|
/// <reference lib="esnext" />
|
|
|
|
|
2020-10-11 18:04:43 -04:00
|
|
|
declare class Window extends EventTarget {
|
|
|
|
new(): Window;
|
2020-04-11 11:42:02 -04:00
|
|
|
readonly window: Window & typeof globalThis;
|
|
|
|
readonly self: Window & typeof globalThis;
|
|
|
|
onload: ((this: Window, ev: Event) => any) | null;
|
|
|
|
onunload: ((this: Window, ev: Event) => any) | null;
|
2020-03-24 23:56:40 -04:00
|
|
|
close: () => void;
|
2020-04-11 11:42:02 -04:00
|
|
|
readonly closed: boolean;
|
2020-01-29 12:54:23 -05:00
|
|
|
Deno: typeof Deno;
|
|
|
|
}
|
|
|
|
|
2020-09-25 17:23:35 -04:00
|
|
|
declare var window: Window & typeof globalThis;
|
|
|
|
declare var self: Window & typeof globalThis;
|
|
|
|
declare var onload: ((this: Window, ev: Event) => any) | null;
|
|
|
|
declare var onunload: ((this: Window, ev: Event) => any) | null;
|
2020-01-29 12:54:23 -05:00
|
|
|
|
2020-04-11 11:42:02 -04:00
|
|
|
/* eslint-enable @typescript-eslint/no-explicit-any */
|