From 2d46ce117b918796ce6d10380365e94d62a1b4ac Mon Sep 17 00:00:00 2001 From: Rauli Laine Date: Sat, 11 Jan 2025 11:42:44 +0200 Subject: [PATCH] Add global event listeners to type definitions --- index.d.ts | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/index.d.ts b/index.d.ts index 9b4e9c6..ede73ae 100644 --- a/index.d.ts +++ b/index.d.ts @@ -51,6 +51,69 @@ type Attributes = { tabindex?: StringOrCallback; title?: StringOrCallback; + onabort?: EventListener; + onautocomplete?: EventListener; + onautocompleteerror?: EventListener; + onblur?: EventListener; + oncancel?: EventListener; + oncanplay?: EventListener; + oncanplaythrough?: EventListener; + onchange?: EventListener; + onclick?: EventListener; + onclose?: EventListener; + oncontextmenu?: EventListener; + oncuechange?: EventListener; + ondblclick?: EventListener; + ondrag?: EventListener; + ondragend?: EventListener; + ondragenter?: EventListener; + ondragleave?: EventListener; + ondragover?: EventListener; + ondragstart?: EventListener; + ondrop?: EventListener; + ondurationchange?: EventListener; + onemptied?: EventListener; + onended?: EventListener; + onerror?: EventListener; + onfocus?: EventListener; + oninput?: EventListener; + oninvalid?: EventListener; + onkeydown?: EventListener; + onkeypress?: EventListener; + onkeyup?: EventListener; + onload?: EventListener; + onloadeddata?: EventListener; + onloadedmetadata?: EventListener; + onloadstart?: EventListener; + onmousedown?: EventListener; + onmouseenter?: EventListener; + onmouseleave?: EventListener; + onmousemove?: EventListener; + onmouseout?: EventListener; + onmouseover?: EventListener; + onmouseup?: EventListener; + onmousewheel?: EventListener; + onpause?: EventListener; + onplay?: EventListener; + onplaying?: EventListener; + onprogress?: EventListener; + onratechange?: EventListener; + onreset?: EventListener; + onresize?: EventListener; + onscroll?: EventListener; + onseeked?: EventListener; + onseeking?: EventListener; + onselect?: EventListener; + onshow?: EventListener; + onsort?: EventListener; + onstalled?: EventListener; + onsubmit?: EventListener; + onsuspend?: EventListener; + ontimeupdate?: EventListener; + ontoggle?: EventListener; + onvolumechange?: EventListener; + onwaiting?: EventListener; + [key: string]: | StringOrCallback | number