ts-json-schema-generator
Version:
Generate JSON schema from your Typescript sources
13 lines (12 loc) • 585 B
TypeScript
import ts from "typescript";
import { SubNodeParser } from "../SubNodeParser.js";
import { BaseType } from "../Type/BaseType.js";
import { FunctionOptions } from "../Config.js";
import { Context, NodeParser } from "../NodeParser.js";
export declare class ConstructorNodeParser implements SubNodeParser {
protected childNodeParser: NodeParser;
protected functions: FunctionOptions;
constructor(childNodeParser: NodeParser, functions: FunctionOptions);
supportsNode(node: ts.TypeNode): boolean;
createType(node: ts.ConstructorTypeNode, context: Context): BaseType;
}