Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>WindowEventHandlers

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface WindowEventHandlers
import { type WindowEventHandlers } from "https://deno.land/x/windmill@v1.333.5/node_modules/evt/lib/types/lib.dom.d.ts";

Properties

onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null

Methods

addEventListener<K extends keyof WindowEventHandlersEventMap>(
type: K,
listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof WindowEventHandlersEventMap>(
type: K,
listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void