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