UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

14 lines (13 loc) 613 B
import { MutableTypeFormatter } from "./MutableTypeFormatter"; import { Definition } from "./Schema/Definition"; import { SubTypeFormatter } from "./SubTypeFormatter"; import { BaseType } from "./Type/BaseType"; export declare class ChainTypeFormatter implements SubTypeFormatter, MutableTypeFormatter { private typeFormatters; constructor(typeFormatters: SubTypeFormatter[]); addTypeFormatter(typeFormatter: SubTypeFormatter): this; supportsType(type: BaseType): boolean; getDefinition(type: BaseType): Definition; getChildren(type: BaseType): BaseType[]; private getTypeFormatter; }