2020-01-29 18:54:23 +01:00
|
|
|
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
|
|
|
2020-04-12 01:42:02 +10:00
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
2020-01-29 18:54:23 +01:00
|
|
|
|
|
|
|
/// <reference no-default-lib="true" />
|
2020-02-19 16:34:11 +11:00
|
|
|
/// <reference lib="deno.ns" />
|
|
|
|
/// <reference lib="deno.shared_globals" />
|
2020-01-29 18:54:23 +01:00
|
|
|
/// <reference lib="esnext" />
|
|
|
|
|
2020-04-12 01:42:02 +10:00
|
|
|
declare interface Window extends EventTarget {
|
|
|
|
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 20:56:40 -07:00
|
|
|
close: () => void;
|
2020-04-12 01:42:02 +10:00
|
|
|
readonly closed: boolean;
|
2020-01-29 18:54:23 +01:00
|
|
|
Deno: typeof Deno;
|
|
|
|
}
|
|
|
|
|
2020-04-10 14:24:42 -04:00
|
|
|
declare const window: Window & typeof globalThis;
|
|
|
|
declare const self: Window & typeof globalThis;
|
2020-04-12 01:42:02 +10:00
|
|
|
declare const onload: ((this: Window, ev: Event) => any) | null;
|
|
|
|
declare const onunload: ((this: Window, ev: Event) => any) | null;
|
2020-01-29 18:54:23 +01:00
|
|
|
|
2020-04-12 01:42:02 +10:00
|
|
|
/* eslint-enable @typescript-eslint/no-explicit-any */
|