UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

13 lines (12 loc) 603 B
import type { Definition } from "./Schema/Definition.js"; import type { SubTypeFormatter } from "./SubTypeFormatter.js"; import type { BaseType } from "./Type/BaseType.js"; export declare class CircularReferenceTypeFormatter implements SubTypeFormatter { protected childTypeFormatter: SubTypeFormatter; protected definition: Map<BaseType, Definition>; protected children: Map<BaseType, BaseType[]>; constructor(childTypeFormatter: SubTypeFormatter); supportsType(type: BaseType): boolean; getDefinition(type: BaseType): Definition; getChildren(type: BaseType): BaseType[]; }