createSchema CallablecreateSchema<S, T>(__namedParameters: SchemaOptions<T>, criteria?: (Criteria<T> | CriteriaFactory<T>)[]): SCreate a custom schema with a defined list of criteria. When a value is being validated, all chained criteria will be ran to test for failures. If no failures, a type casted value is returned.Type parametersS: Schema<any, S>T = InferSchemaType<S>
Create a custom schema with a defined list of criteria. When a value is being validated, all chained criteria will be ran to test for failures. If no failures, a type casted value is returned.