UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

28 lines (26 loc) 699 B
export interface Config { path?: string; type?: string; schemaId?: string; tsconfig?: string; expose?: "all" | "none" | "export"; topRef?: boolean; jsDoc?: "none" | "extended" | "basic"; sortProps?: boolean; strictTuples?: boolean; skipTypeCheck?: boolean; encodeRefs?: boolean; extraTags?: string[]; additionalProperties?: boolean; } export const DEFAULT_CONFIG: Omit<Required<Config>, "path" | "type" | "schemaId" | "tsconfig"> = { expose: "export", topRef: true, jsDoc: "extended", sortProps: true, strictTuples: false, skipTypeCheck: false, encodeRefs: true, extraTags: [], additionalProperties: false, };