1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-29 07:00:16 +02:00

dispatchEvent

This commit is contained in:
2023-11-21 21:22:04 +01:00
parent a2b4e19d1b
commit 56206343d1
8 changed files with 25 additions and 14 deletions

2
dist/esm.d.ts vendored
View File

@@ -96,6 +96,8 @@ export function chainableAppend<EL extends SupportedElement>(el: EL): EL;
export function dispatchEvent(name: keyof DocumentEventMap | string, options?: EventInit):
(element: SupportedElement, data?: any)=> void;
export function dispatchEvent(name: keyof DocumentEventMap | string, options: EventInit | null, element: SupportedElement | (()=> SupportedElement)):
(data?: any)=> void;
interface On{
/** Listens to the DOM event. See {@link Document.addEventListener} */
<