import { partial } from "https://deno.land/x/valibot@v0.22.0/src/index.ts";
Creates an object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TSchema extends ObjectSchema<any, any>
Parameters
optional
pipe: Pipe<ObjectOutput<PartialObjectEntries<TSchema["entries"]>, undefined>>A validation and transformation pipe.
Creates an object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TSchema extends ObjectSchema<any, any>
Parameters
optional
pipe: Pipe<ObjectOutput<PartialObjectEntries<TSchema["entries"]>, undefined>>A validation and transformation pipe.
Creates an object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TSchema extends ObjectSchema<any, any>
TRest extends BaseSchema | undefined
Parameters
optional
pipe: Pipe<ObjectOutput<PartialObjectEntries<TSchema["entries"]>, TRest>>A validation and transformation pipe.
Creates an object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TSchema extends ObjectSchema<any, any>
TRest extends BaseSchema | undefined
Parameters
optional
pipe: Pipe<ObjectOutput<PartialObjectEntries<TSchema["entries"]>, TRest>>A validation and transformation pipe.