소스 검색

correct callback

Raanan Weber 4 년 전
부모
커밋
b8209e7d7c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 = EventHandler
+type XREventHandler = (callback: any) => void;
 
 interface XRLayer extends EventTarget {}