diff --git a/src/preact.d.ts b/src/preact.d.ts index 85e793bc78..9c2f0c6391 100644 --- a/src/preact.d.ts +++ b/src/preact.d.ts @@ -398,6 +398,7 @@ declare global { type AnimationEventHandler = EventHandler; type TransitionEventHandler = EventHandler; type GenericEventHandler = EventHandler; + type PointerEventHandler = EventHandler; interface DOMAttributes extends preact.PreactDOMAttributes { // Image Events @@ -542,6 +543,28 @@ declare global { onTouchStart?: TouchEventHandler; onTouchStartCapture?: TouchEventHandler; + // Pointer Events + onPointerOver?: PointerEventHandler; + onPointerOverCapture?: PointerEventHandler; + onPointerEnter?: PointerEventHandler; + onPointerEnterCapture?: PointerEventHandler; + onPointerDown?: PointerEventHandler; + onPointerDownCapture?: PointerEventHandler; + onPointerMove?: PointerEventHandler; + onPointerMoveCapture?: PointerEventHandler; + onPointerUp?: PointerEventHandler; + onPointerUpCapture?: PointerEventHandler; + onPointerCancel?: PointerEventHandler; + onPointerCancelCapture?: PointerEventHandler; + onPointerOut?: PointerEventHandler; + onPointerOutCapture?: PointerEventHandler; + onPointerLeave?: PointerEventHandler; + onPointerLeaveCapture?: PointerEventHandler; + onGotPointerCapture?: PointerEventHandler; + onGotPointerCaptureCapture?: PointerEventHandler; + onLostPointerCapture?: PointerEventHandler; + onLostPointerCaptureCapture?: PointerEventHandler; + // UI Events onScroll?: UIEventHandler; onScrollCapture?: UIEventHandler;