Raanan Weber 4 anni fa
parent
commit
3d2d298b5a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 {}