Skip to main content
Version: v7.0.0

onDocumentEvent


Import
import { onDocumentEvent } from "@hyper-fetch/core"

Parameters

onDocumentEvent<K>(key: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options: boolean | AddEventListenerOptions)
Parameters
NameTypeDescription
key
K
listener
(this: Document, ev: DocumentEventMap[K]) => any
options
boolean | AddEventListenerOptions

Returns

VoidFunction
On this page