import { partialAsync } from "https://deno.land/x/valibot@v0.9.0/src/index.ts";
Creates an async object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>
Parameters
optional
pipe: Pipe<ObjectOutput<Partial<TObjectSchema["object"]>>>A validation and transformation pipe.
Creates an async object schema consisting of all properties of an existing object schema set to optional.
Type Parameters
TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>
Parameters
optional
pipe: Pipe<ObjectOutput<Partial<TObjectSchema["object"]>>>A validation and transformation pipe.