import { enum_ } from "https://deno.land/x/valibot@v0.28.1/src/schemas/enum/index.ts";
Creates an enum schema.
Type Parameters
TEnum extends Enum
Parameters
enum__: TEnum
The enum value.
optional
message: ErrorMessageThe error message.
Returns
An enum schema.