import { requiredAsync } from "https://deno.land/x/valibot@v0.5.0/src/methods/required/requiredAsync.ts";
Creates an async object schema consisting of all properties of an existing object schema set to none optional.
Type Parameters
TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>
Parameters
schema: TObjectSchema
The affected scheme.
optional
pipe: Pipe<ObjectOutput<Required<TObjectSchema["object"]>>>A validation and transformation pipe.
Returns
ObjectSchemaAsync<Required<TObjectSchema["object"]>>
An async object schema.
Creates an async object schema consisting of all properties of an existing object schema set to none optional.
Type Parameters
TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>
Parameters
schema: TObjectSchema
The affected scheme.
optional
pipe: Pipe<ObjectOutput<Required<TObjectSchema["object"]>>>A validation and transformation pipe.
Returns
ObjectSchemaAsync<Required<TObjectSchema["object"]>>
An async object schema.