Registers a root type in the resolver
The name of the root type
The type description (string, XtTypeInfo, or XtTypeDetail)
Optionalhandler: XtTypeHandler<Type>Optional handler for the type
Groups sub-properties by their type name
The parent type name
A map of type names to arrays of property keys of that type
True since this resolver supports updates
Creates a default type handler for the given type hierarchy
The type hierarchy to create a handler for
Optionalvalue: TypeOptional value to help determine handler behavior
A new DefaultTypeHandler instance
Finds the primitive type hierarchy for a given value
The value to determine the type of
The primitive type hierarchy or undefined
Finds a type reference by name within a given type
The parent type name
The reference name to find
The type reference or undefined if not found
Returns the list of properties of the type typeName that are compatible with the type typeOfSubProperties
Retrieves the complete information on a subType. It can be a type definition or a reference to a type definition
OptionalsubName: string | nullOptionalvalue: anyFinds the type handler for a given type, optionally creating a default one
The name of the type to find the handler for
OptionalcreateDefault: booleanIf true, creates a default handler if none exists
OptionalsubName: stringOptional sub-type name to resolve first
Optionalvalue: TypeOptional value to help determine the type
Object with the resolved typeName and its handler (if found)
Finds the type name for a given type, optionally resolving a sub-type
The type name or null/undefined
OptionalsubName: stringOptional sub-type name
Optionalvalue: anyOptional value to help determine the type
The resolved type name or undefined
Recursively builds an XtTypeHierarchy from a type description
The type description (string, XtTypeInfo, or XtTypeDetail)
The name of the type
Optionalhandler: XtTypeHandler<any>Optional handler for the type
The constructed type hierarchy
Gets an existing type handler or creates a default one if none exists
The name of the type
OptionalsubName: stringOptional sub-type name
Optionalvalue: TypeOptional value to help determine the type
Object with the resolved typeName and its handler
Retrieves a registered type hierarchy by name
The name of the type to retrieve
The type hierarchy or undefined if not found
Checks if a type definition represents a primitive type
The type definition (string name, hierarchy, or reference)
Optionalvalue: anyOptional value to help determine primitiveness
True if the type is primitive
Lists all type references for a given type
The type name to list references for
A map of reference names to their XtTypeReference definitions
Lists the names of sub-properties for a given type, optionally using a value to infer them
The type name to list sub-properties for
Optionalvalue: anyOptional value used to infer sub-properties if no type is registered
An array of sub-property names
Sets a type handler for an already-registered type
The name of the type
The handler to assign
Default implementation of XtUpdatableTypeResolver. Manages a registry of type hierarchies and their handlers, supports adding root types, resolving references, and querying type metadata.