import { partialAsync } from "https://deno.land/x/valibot@v0.23.0/mod.ts";
Creates an async object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>
Parameters
optional
pipe: PipeAsync<ObjectOutput<PartialObjectEntriesAsync<TSchema["entries"]>, undefined>>A validation and transformation pipe.
Creates an async object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>
Parameters
optional
pipe: PipeAsync<ObjectOutput<PartialObjectEntriesAsync<TSchema["entries"]>, undefined>>A validation and transformation pipe.
Creates an async object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>
TRest extends BaseSchema | undefined
Parameters
optional
pipe: PipeAsync<ObjectOutput<PartialObjectEntriesAsync<TSchema["entries"]>, TRest>>A validation and transformation pipe.
Creates an async object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>
TRest extends BaseSchema | undefined
Parameters
optional
pipe: PipeAsync<ObjectOutput<PartialObjectEntriesAsync<TSchema["entries"]>, TRest>>A validation and transformation pipe.