import { enumType } from "https://deno.land/x/valibot@v0.19.0/src/schemas/enumType/enumType.ts";
Creates a enum schema.
Parameters
enumValue: TEnum
The enum value.
optional
error: ErrorMessageThe error message.
Returns
A enum schema.
import { enumType } from "https://deno.land/x/valibot@v0.19.0/src/schemas/enumType/enumType.ts";
Creates a enum schema.
The enum value.
The error message.
A enum schema.