@@ -53,6 +53,7 @@ export type KeyboardEventHandler<T extends EventTarget> = EventHandler<KeyboardE
53
53
export type MouseEventHandler < T extends EventTarget > = EventHandler < MouseEvent , T > ;
54
54
export type TouchEventHandler < T extends EventTarget > = EventHandler < TouchEvent , T > ;
55
55
export type PointerEventHandler < T extends EventTarget > = EventHandler < PointerEvent , T > ;
56
+ export type GamepadEventHandler < T extends EventTarget > = EventHandler < GamepadEvent , T > ;
56
57
export type UIEventHandler < T extends EventTarget > = EventHandler < UIEvent , T > ;
57
58
export type WheelEventHandler < T extends EventTarget > = EventHandler < WheelEvent , T > ;
58
59
export type AnimationEventHandler < T extends EventTarget > = EventHandler < AnimationEvent , T > ;
@@ -170,6 +171,10 @@ export interface DOMAttributes<T extends EventTarget> {
170
171
'on:pointerup' ?: PointerEventHandler < T > | undefined | null ;
171
172
'on:lostpointercapture' ?: PointerEventHandler < T > | undefined | null ;
172
173
174
+ // Gamepad Events
175
+ 'on:gamepadconnected' ?: GamepadEventHandler < T > | undefined | null ;
176
+ 'on:gamepaddisconnected' ?: GamepadEventHandler < T > | undefined | null ;
177
+
173
178
// UI Events
174
179
'on:scroll' ?: UIEventHandler < T > | undefined | null ;
175
180
'on:resize' ?: UIEventHandler < T > | undefined | null ;
@@ -1454,7 +1459,7 @@ export interface SVGAttributes<T extends EventTarget> extends AriaAttributes, DO
1454
1459
z ?: number | string | undefined | null ;
1455
1460
zoomAndPan ?: string | undefined | null ;
1456
1461
1457
- // allow any data- attribute
1462
+ // allow any data- attribute
1458
1463
[ key : `data-${string } `] : any ;
1459
1464
}
1460
1465
0 commit comments