1declare module 'json-schema-deref-sync' { 2 interface Options { 3 /** 4 * The base folder to get relative path files from. 5 * @default process.cwd() 6 */ 7 baseFolder?: string; 8 9 /** 10 * By default missing / unresolved refs will be left as is with their ref value intact. 11 * If set to true we will error out on first missing ref that we cannot resolve. 12 * 13 * @default false 14 */ 15 failOnMissing?: boolean; 16 17 /** 18 * By default properties in a object with $ref will be removed in the output. 19 * If set to true they will be added/overwrite the output. 20 * This will use `lodash`'s merge function. 21 * 22 * @default false 23 */ 24 mergeAdditionalProperties?: boolean; 25 26 /** 27 * By default `$id` fields will get copied when dereferencing. 28 * If set to true they will be removed. 29 * Merged properties will not get removed. 30 * 31 * @default false 32 */ 33 removeIds?: boolean; 34 35 /** 36 * A hash mapping reference types (e.g., 'file') to loader functions. 37 */ 38 loaders?: Record<string, Function>; 39 } 40 41 export default function deref(schema: object, options?: object): object | Error; 42} 43