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

x/value_schema/dist-deno/schemas/enumeration.ts

simple, easy-to-use, and declarative input validator; supports Node.js, TypeScript, Deno, and Bun
Latest
import * as valueSchema from "https://deno.land/x/value_schema@v4.0.0/dist-deno/schemas/enumeration.ts";

Functions

schema for enum-like (enum / union) or null or undefined