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