Skip to content

Conversation

@0b5vr
Copy link
Contributor

@0b5vr 0b5vr commented Feb 8, 2021

Original PR I've made: DefinitelyTyped/DefinitelyTyped#51033

Why

The primary motivation is to follow changes made in mrdoob/three.js#20754.

What

  • Update the type definition of WebXRManager.
  • Add a test about WebXR VR, webxr-vr-cube.ts.
  • Update the type definition of XRSession, since the test I mentioned above doesn't work without this change.

Checklist

  • Added myself to contributors table
  • Ready to be merged

FMS_Cat added 8 commits February 8, 2021 18:15
getReferenceSpace / getSession should be nullable
setSession should return Promise<void> instead of void since r125
See: mrdoob/three.js#20754
Trivial rename of arguments
webxr-vr-cube.ts, a simple example featuring WebXR VR
XRSession should extend EventTarget
Forgot to add `webxr-vr-cube.ts` to the tsconfig.json
Copy link
Member

@joshuaellis joshuaellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you 👍🏼

@joshuaellis joshuaellis merged commit f82d6ea into three-types:master Feb 8, 2021
@0b5vr 0b5vr deleted the fix-webxrmanager branch February 8, 2021 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants