Skip to content

Document

Unofficial

Augments the built-in Document interface.

Signature:

export interface Document

Properties

PropertyTypeDescription
_EVENTS?{
K in keyof [DocumentEventMap]?: EventListenerInfo[];
}
The event listeners of the document.

Methods

MethodReturnsDescription
off(this, type, selector, listener, options?)voidRemoves an event listener from the document.
on(this, type, selector, listener, options?)voidAdds an event listener to the document.

Links to this page: