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

x/typebox/src/typebox.ts>TEnum

JSON Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
interface TEnum
implements TSchema
import { type TEnum } from "https://deno.land/x/typebox@0.26.0-dev.1/src/typebox.ts";

Type Parameters

optional
T extends Record<string, string | number> = Record<string, string | number>

Properties

[Kind]: "Union"
static: TEnumStatic<T>
anyOf: TLiteral<string | number>[]