import { enumType } from "https://deno.land/x/valibot@v0.5.0/src/schemas/enumType/index.ts";
Creates a enum schema.
Type Parameters
TEnumValue extends EnumValue
Parameters
enumValue: TEnumValue
The enum value.
Returns
A enum schema.
import { enumType } from "https://deno.land/x/valibot@v0.5.0/src/schemas/enumType/index.ts";
Creates a enum schema.
The enum value.
A enum schema.