ts-json-schema-generator
Version:
Generate JSON schema from your Typescript sources
12 lines (11 loc) • 353 B
TypeScript
import { BaseType } from "./BaseType.js";
export type EnumValue = string | boolean | number | null;
export declare class EnumType extends BaseType {
private id;
private values;
private types;
constructor(id: string, values: readonly EnumValue[]);
getId(): string;
getValues(): readonly EnumValue[];
getTypes(): BaseType[];
}