import { requiredAsync } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";
Creates a modified copy of an object schema that marks all entries as required.
Parameters
schema: TSchema
The schema to modify.
Returns
SchemaWithRequiredAsync<TSchema, undefined, undefined>
An object schema.
Creates a modified copy of an object schema that marks all entries as required.
Type Parameters
TMessage extends ErrorMessage<NonOptionalIssue> | undefined
Returns
SchemaWithRequiredAsync<TSchema, undefined, TMessage>
An object schema.
Creates a modified copy of an object schema that marks the selected entries as required.
Type Parameters
TKeys extends ObjectKeys<TSchema>
Returns
SchemaWithRequiredAsync<TSchema, TKeys, undefined>
An object schema.
Creates a modified copy of an object schema that marks the selected entries as required.
Type Parameters
TKeys extends ObjectKeys<TSchema>
TMessage extends ErrorMessage<NonOptionalIssue> | undefined
Returns
An object schema.