import { setAsync } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/index.ts";
Creates a set schema.
Type Parameters
TValue extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>
Parameters
value: TValue
The value schema.
Returns
SetSchemaAsync<TValue, undefined>
A set schema.
Creates a set schema.
Type Parameters
TValue extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>
TMessage extends ErrorMessage<SetIssue> | undefined
Returns
A set schema.