API

Type Alias ResolveWebXRFeatureOptions<T>

ResolveWebXRFeatureOptions: T extends keyof IWebXRFeatureNameOptionsMap
    ? IWebXRFeatureNameOptionsMap[T] extends undefined
        ? undefined
        : Expand<IWebXRFeatureNameOptionsMap[T]>
    : any

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.

Type Parameters