The type of data that the schema validates.
Indicates whether the schema allows undefined
as a valid value.
The type of data that the schema validates, represented as a string.
Marks the schema as optional, allowing undefined
as a valid value.
The current schema instance.
Parses the input data and returns the parsed value.
This method is typically used to coerce or transform the input data into the desired format.
The input data to parse.
The parsed value.
Validates the input data against the schema.
The data to validate.
The validated value.
Generated using TypeDoc
The base interface for all schemas.
This interface defines the core methods and properties that all schemas must implement, such as parsing, validation, and optionality handling.