Raanan Weber %!s(int64=4) %!d(string=hai) anos
pai
achega
3d2d298b5a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/LibDeclarations/webxr.d.ts

+ 1 - 1
src/LibDeclarations/webxr.d.ts

@@ -37,7 +37,7 @@ type XRFrameRequestCallback = (time: DOMHighResTimeStamp, frame: XRFrame) => voi
 type XRPlaneSet = Set<XRPlane>;
 type XRAnchorSet = Set<XRAnchor>;
 
-type XREventHandler<T> = (callback: T) => void;
+type XREventHandler<T extends Event> = (callback: T) => void;
 
 interface XRSpace extends EventTarget {}