Skip to content

Commit

Permalink
Add global event listeners to type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
RauliL committed Jan 11, 2025
1 parent 002b8e8 commit 2d46ce1
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d46ce1

Please sign in to comment.