UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

12 lines (11 loc) 501 B
import * as ts from "typescript"; import { Annotations } from "../Type/AnnotatedType"; import { BasicAnnotationsReader } from "./BasicAnnotationsReader"; export declare class ExtendedAnnotationsReader extends BasicAnnotationsReader { private typeChecker; constructor(typeChecker: ts.TypeChecker, extraTags?: Set<string>); getAnnotations(node: ts.Node): Annotations | undefined; isNullable(node: ts.Node): boolean; private getDescriptionAnnotation; private getTypeAnnotation; }