new Schema()
Creates a new schema instance.
constructor(
define:
| ((build: Schema.Builders) => TBuilder | Schema<TBuilder>)
| Schema<TBuilder>,
);
Parameters
- define — A callback that uses the provided Schema.build methods to define the schema.
Related
class Schema
A class that represents a validation schema for input values, objects, and arrays.
