ts-json-schema-generator
Version:
Generate JSON schema from your Typescript sources
14 lines (13 loc) • 613 B
TypeScript
import ts from "typescript";
import { Annotations } from "../Type/AnnotatedType.js";
import { BasicAnnotationsReader } from "./BasicAnnotationsReader.js";
export declare class ExtendedAnnotationsReader extends BasicAnnotationsReader {
private typeChecker;
private markdownDescription?;
constructor(typeChecker: ts.TypeChecker, extraTags?: Set<string>, markdownDescription?: boolean | undefined);
getAnnotations(node: ts.Node): Annotations | undefined;
isNullable(node: ts.Node): boolean;
private getDescriptionAnnotation;
private getTypeAnnotation;
private getExampleAnnotation;
}