Type Alias ResolveWebXRFeatureOptions<T>
ResolveWebXRFeatureOptions: T extends keyof IWebXRFeatureNameOptionsMap
? IWebXRFeatureNameOptionsMap[T] extends undefined
? undefined
: Expand<IWebXRFeatureNameOptionsMap[T]>
: any
? IWebXRFeatureNameOptionsMap[T] extends undefined
? undefined
: Expand<IWebXRFeatureNameOptionsMap[T]>
: any
Type Parameters
- T extends WebXRFeatureNameType
Helper type to resolve the options type for a specific feature based on the feature name, or fallback to any if the feature name is not in the type map. The Expand utility type flattens the interface to show properties inline in IntelliSense.