type Schema.Initializer
A type that can be used to initialize a Schema instance as the constructor argument.
type Initializer<TOutput> =
| Schema<Builder<TOutput>>
| ((builders: Builders) => Builder<TOutput>);
Notes
- Useful for accepting a schema definition outside of the Schema class and constructing a Schema instance from it.
Related
class Schema
A class that represents a validation schema for input values, objects, and arrays.
