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

x/valibot/src/schemas/enumType/index.ts>EnumSchemaAsync

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

Enum schema async type.

Type Parameters

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