Ver código fonte

Updated the setAnimationLoop type def to
include null parameter

Dinesh Salunke 6 anos atrás
pai
commit
bfa59fccb5
1 arquivos alterados com 1 adições e 1 exclusões
  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.