import { nativeEnum } from "https://deno.land/x/valibot@v0.5.0/mod.ts";
Creates a enum schema.
Type Parameters
TNativeEnum extends NativeEnum
Parameters
nativeEnum: TNativeEnum
The native enum value.
Returns
A enum schema.
import { nativeEnum } from "https://deno.land/x/valibot@v0.5.0/mod.ts";
Creates a enum schema.
The native enum value.
A enum schema.