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