浏览代码

Upgraded to TypeScript 3.0.1.
Fixed type errors in interface VRLayer by enriching the possible types
for the subsequent properties 'leftBounds' and 'rightBounds'.

Christopher Stock 7 年之前
父节点
当前提交
07fa603479
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      package.json
  2. 2 2
      src/Cameras/babylon.webvr.ts

+ 1 - 1
package.json

@@ -41,6 +41,6 @@
     "dependencies": {},
     "devDependencies": {
         "base64-font-loader": "0.0.4",
-        "typescript": "^2.8.1"
+        "typescript": "^3.0.1"
     }
 }

+ 2 - 2
src/Cameras/babylon.webvr.ts

@@ -125,8 +125,8 @@ declare var VRDisplay: {
 };
 
 interface VRLayer {
-    leftBounds?: number[] | null;
-    rightBounds?: number[] | null;
+    leftBounds?: number[] | Float32Array | null;
+    rightBounds?: number[] | Float32Array | null;
     source?: HTMLCanvasElement | null;
 }