import { enum_ } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/index.ts";
Creates an enum schema.
Type Parameters
TEnum extends Enum
Parameters
enum__: TEnum
The enum object.
Returns
EnumSchema<TEnum, undefined>
An enum schema.
Creates an enum schema.
Type Parameters
TEnum extends Enum
TMessage extends ErrorMessage<EnumIssue> | undefined
Returns
An enum schema.