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

x/valibot/src/index.ts>EnumSchema

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

Enum schema type.

Type Parameters

TEnum extends Enum
optional
TOutput = TEnum[number]
definition: BaseSchema<TEnum[number], TOutput> & { schema: "enum"; enum: TEnum; }