Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions types/webxr/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface Navigator {
}

/**
* WebGL Context Compatability
* WebGL Context Compatibility
*
* ref: https://immersive-web.github.io/webxr/#contextcompatibility
*/
Expand Down Expand Up @@ -387,7 +387,7 @@ interface XRSessionInit {
}

interface XRSessionEventMap {
inputsourceschange: XRInputSourceChangeEvent;
inputsourceschange: XRInputSourcesChangeEvent;
end: XRSessionEvent;
visibilitychange: XRSessionEvent;
frameratechange: XRSessionEvent;
Expand Down Expand Up @@ -460,7 +460,7 @@ interface XRSession extends EventTarget {
updateTargetFrameRate(rate: number): Promise<void>;

onend: XRSessionEventHandler;
oninputsourceschange: XRInputSourceChangeEventHandler;
oninputsourceschange: XRInputSourcesChangeEventHandler;
onselect: XRInputSourceEventHandler;
onselectstart: XRInputSourceEventHandler;
onselectend: XRInputSourceEventHandler;
Expand Down Expand Up @@ -546,13 +546,13 @@ declare abstract class XRView implements XRView {}
* available to an XRSession.
* ref: https://immersive-web.github.io/webxr/#xrinputsourceschangeevent-interface
*/
interface XRInputSourceChangeEvent extends XRSessionEvent {
interface XRInputSourcesChangeEvent extends XRSessionEvent {
readonly removed: readonly XRInputSource[];
readonly added: readonly XRInputSource[];
}

interface XRInputSourceChangeEventHandler {
(evt: XRInputSourceChangeEvent): any;
interface XRInputSourcesChangeEventHandler {
(evt: XRInputSourcesChangeEvent): any;
}

// Experimental/Draft features
Expand Down