Sfoglia il codice sorgente

Add return type to createButton for WebVR typings.

The function can return either a button or an `<a>` element. `HTMLElement` is a simple generalization in case the implementation changes again.
Lucas Garron 5 anni fa
parent
commit
413ec9280f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/jsm/vr/WebVR.d.ts

+ 1 - 1
examples/jsm/vr/WebVR.d.ts

@@ -7,5 +7,5 @@ export interface WEBVROptions {
 }
 }
 
 
 export namespace WEBVR {
 export namespace WEBVR {
-	export function createButton( renderer: WebGLRenderer, options?: WEBVROptions );
+	export function createButton( renderer: WebGLRenderer, options?: WEBVROptions ): HTMLElement;
 }
 }