-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TS3.0-RC - VRLayer left/rightBounds type. #26038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This all came about due to an issue discussed in microsoft/TypeScript-DOM-lib-generator#419 where some browsers adopted earlier versions of the spec which required |
Should be fixed by #25944 |
Is there a workaround for this issue in the meantime? Thanks! EDIT: Worked around this issue by adding a new type roots folder, with webvr-api/index.d.ts and the Float32Array definition. Will subsequently drop this folder and the erroneous definition. |
It looks like microsoft/TypeScript-DOM-lib-generator#546 hasn't been merged. |
@kitsonk that pr still seems to include Float32Array in the union https://github.com/Microsoft/TSJS-lib-generator/pull/546/files#diff-a97a9d0dbf71ec2f96be57f7fb9f70c9R1523 So we would still be seeing the same issues we're having right now with the webvr typings, no? I'd still appreciate some input on how best to reconcile this situation perhaps from @mhegazy or @RyanCavanaugh . There are three situations that need to be handled by the DT webvr-api typings:
Is there any way to satisfy all three? Or should we do a major version bump of the webvr typings and support TS 3 onwards only in the next major version? I've not done a major version bump inside DT before, anything to be aware of if that's our preferred choice here? Is there still a possibility TS 3.x will revert to how it was in 2? @mhegazy and @kitsonk both seem to suggest this may be happening though I'm yet to see a code change that does it. |
@mhegazy, perhaps we should re-open this issue? We still have the exact issue described. Do you remember what was the motivation for closing the issue? |
Why is this issue closed when it hasn't been resolved? |
This bug is not in Typescript < 3.0, so we force a version between 2.0 and 3.0 to not get hit by this bug in ci. Once it is fixed we can update to > 3.* eventually again. microsoft/TypeScript#26038
Bump. Still running into this issue with 3.1.1. |
Updating the dependencies to the following versions, everything runs smoothly: "devDependencies":{
"typescript": "3.1.1",
"@types/three": "^0.92.23",
/*"@types/webvr-api": "^0.0.34" removed */
/* [...] others */
} Given that
|
TypeScript Version: 3.0.0-rc
VRLayer
type described in 3.0rc's lib.dom.d.ts conflicts with the one in @types/webvr-api. The latter is a devDependency for the widely used @types/three.VRLayer
in lib.dom.d.ts:VRLayer
in @types/webvr_api/index.d.ts:Looking at the specs, including
Float32Array
among the piped types seems unnecessary/wrong to me.The text was updated successfully, but these errors were encountered: