Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/mod.ts>EnumSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
type alias EnumSchema
Re-export
import { type EnumSchema } from "https://deno.land/x/valibot@v0.28.1/mod.ts";

Native enum schema type.

Type Parameters

TEnum extends Enum
optional
TOutput = TEnum[keyof TEnum]
definition: BaseSchema<TEnum[keyof TEnum], TOutput> & { type: "enum"; enum: TEnum; message: ErrorMessage | undefined; }