UNPKG

fluid-oas

Version:

Build declarative OpenApiv3.* specifications.

12 lines (11 loc) 496 B
import { type SchemaInterface } from "../lib/base"; export type EnumTypes = string | number | boolean | object | null; export interface OpenApiEnum extends Omit<SchemaInterface<EnumTypes>, "addEnums"> { } /** * A Special Utility type for defining arbitrary enumerable values. * * This is different from the addEnums method on other schemas, as those restrict * the enumerable types to be contained with the type of Schema. */ export declare const Enum: (...val: EnumTypes[]) => OpenApiEnum;