import { required } from "https://deno.land/x/valibot@v0.30.0/mod.ts";
Creates an object schema consisting of all properties of an existing object schema set to non optional.
Type Parameters
TSchema extends ObjectSchema<any, any>
Parameters
schema: TSchema
The affected schema.
optional
pipe: Pipe<ObjectOutput<Required<TSchema["entries"]>, undefined>>A validation and transformation pipe.
Returns
ObjectSchema<Required<TSchema["entries"]>>
An object schema.
Creates an object schema consisting of all properties of an existing object schema set to non optional.
Type Parameters
TSchema extends ObjectSchema<any, any>
Parameters
schema: TSchema
The affected schema.
optional
message: ErrorMessageThe error message.
optional
pipe: Pipe<ObjectOutput<Required<TSchema["entries"]>, undefined>>A validation and transformation pipe.
Returns
ObjectSchema<Required<TSchema["entries"]>>
An object schema.
Creates an object schema consisting of all properties of an existing object schema set to non optional.
Type Parameters
TSchema extends ObjectSchema<any, any>
TRest extends BaseSchema | undefined
Returns
ObjectSchema<Required<TSchema["entries"]>, TRest>
An object schema.
Creates an object schema consisting of all properties of an existing object schema set to non optional.
Type Parameters
TSchema extends ObjectSchema<any, any>
TRest extends BaseSchema | undefined
Parameters
schema: TSchema
The affected schema.
rest: TRest
The object rest.
optional
message: ErrorMessageThe error message.
optional
pipe: Pipe<ObjectOutput<Required<TSchema["entries"]>, TRest>>A validation and transformation pipe.
Returns
ObjectSchema<Required<TSchema["entries"]>, TRest>
An object schema.