Browse Source

TS: Added VRButton.d.ts.

Mugen87 5 years ago
parent
commit
8f6f108d54
1 changed files with 11 additions and 0 deletions
  1. 11 0
      examples/jsm/webxr/VRButton.d.ts

+ 11 - 0
examples/jsm/webxr/VRButton.d.ts

@@ -0,0 +1,11 @@
+import {
+	WebGLRenderer
+} from '../../../src/Three';
+
+export interface WebXROptions {
+	referenceSpaceType: string;
+}
+
+export namespace VRButton {
+	export function createButton( renderer: WebGLRenderer, options?: WebXROptions  ): HTMLElement;
+}