浏览代码

Updated the setAnimationLoop type def to
include null parameter

Dinesh Salunke 6 年之前
父节点
当前提交
bfa59fccb5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/WebGLRenderer.d.ts

+ 1 - 1
src/renderers/WebGLRenderer.d.ts

@@ -326,7 +326,7 @@ export class WebGLRenderer implements Renderer {
 	 * A build in function that can be used instead of requestAnimationFrame. For WebVR projects this function must be used.
 	 * @param callback The function will be called every available frame. If `null` is passed it will stop any already ongoing animation.
 	 */
-	setAnimationLoop( callback: Function ): void;
+	setAnimationLoop( callback: Function | null ): void;
 
 	/**
 	 * @deprecated Use {@link WebGLRenderer#setAnimationLoop .setAnimationLoop()} instead.