UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

9 lines (8 loc) 446 B
import type { BaseType } from "../Type/BaseType.js"; /** * Return the new type wrapped in an annotated type with the same annotations as the original type. * @param originalType The original type. If this is an annotated type, * then the returned type will be wrapped with the same annotations. * @param newType The type to be wrapped. */ export declare function preserveAnnotation(originalType: BaseType, newType: BaseType): BaseType;