Raanan Weber 4 anos atrás
pai
commit
3d2d298b5a
1 arquivos alterados com 1 adições e 1 exclusões
  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 {}