interface Window
implements EventTarget
import { type Window } from "https://deno.land/x/deno@v1.36.0/cli/tsc/dts/lib.deno.window.d.ts";
Properties
readonly
window: Window & globalThisreadonly
self: Window & globalThisonerror: ((this: Window, ev: ErrorEvent) => any) | null
onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null
location: Location
localStorage: Storage
sessionStorage: Storage
caches: CacheStorage
Methods
addEventListener<K extends keyof WindowEventMap>(): void
type: K,
listener: (this: Window, ev: WindowEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof WindowEventMap>(): void
type: K,
listener: (this: Window, ev: WindowEventMap[K]) => any,
options?: boolean | EventListenerOptions,