ts-json-schema-generator
Version:
Generate JSON schema from your Typescript sources
13 lines (12 loc) • 501 B
TypeScript
import { Definition } from "./Schema/Definition";
import { SubTypeFormatter } from "./SubTypeFormatter";
import { BaseType } from "./Type/BaseType";
export declare class CircularReferenceTypeFormatter implements SubTypeFormatter {
private childTypeFormatter;
private definition;
private children;
constructor(childTypeFormatter: SubTypeFormatter);
supportsType(type: BaseType): boolean;
getDefinition(type: BaseType): Definition;
getChildren(type: BaseType): BaseType[];
}