Optionaloptions: Partial<WorkspaceOptions>Set or update the options for the registry.
an object containing the options to set or update.
Check whether a root type is identified by the given key.
the key to look for. If a nested key is given only the first token is considered.
true if a root type exists for the given key, otherwise false.
Get the root type identified by the given key.
the key to look for. If a nested key is given only the first token is considered.
the root type identified by the given key, or undefined if no type is found.
List all registered root types.
a record mapping root keys to their known types.
Delete all registered types.
Check if the type checker knows the type of the given key. Nested keys can be checked using dot notation (e.g., "user.name").
the key to check.
true if the type is known, false otherwise.
Get the type of the given key from the type checker. Nested keys can be accessed using dot notation (e.g., "user.name").
the key to look up in the type checker.
the type associated with the key, or undefined if the type is not known.
Protectedreplace
TypeRegistry is responsible for storing and managing type definitions within the working context. It allows adding, retrieving, and checking for the existence of type definitions. This registry is used during rule evaluation to resolve type references and validate their usage against defined type structures.