UNPKG

@zsnout/ithkuil

Version:

A set of tools which can generate and parse romanized Ithkuil text and which can generate Ithkuil script from text and JSON data.

14 lines (13 loc) 458 B
import { ZodType, type ParseInput, type ParseReturnType } from "zod"; /** A `ZodType` matching a specific enumerated set of literals. */ export declare class Enum<const T> extends ZodType<T> { readonly items: readonly T[]; /** * Constructs an `Enum`. * * @param items The items to match against. * @returns The constructed `Enum`. */ constructor(items: readonly T[]); _parse(input: ParseInput): ParseReturnType<T>; }