UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

10 lines (9 loc) 320 B
import type { BaseType } from "../Type/BaseType.js"; import { UnionType } from "../Type/UnionType.js"; /** * Remove undefined types from union type. Returns the number of non-undefined properties. */ export declare function removeUndefined(propertyType: UnionType): { numRemoved: number; newType: BaseType; };