import { setAsync } from "https://deno.land/x/valibot@v0.1.0-to-json-schema/src/schemas/set/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.