export default helpers; export namespace helpers { export let stringFormats: string[]; export { isFormat }; export let typeNames: string[]; export function getType(val: any): string | undefined; /** * Tries to find the least common schema from two supplied JSON schemas. If it is unable to find * such a schema, it returns null. Incompatibility in structure/types leads to returning null, * except when the difference is only integer/number. Than the 'number' is used instead 'int'. * Types/Structure incompatibility in array items only leads to schema that doesn't specify * items structure/type. * @param {object} schema1 - JSON schema * @param {object} schema2 - JSON schema * @returns {object|null} */ export function mergeSchemaObjs(schema1: object, schema2: object): object | null; } import { isEqual } from 'lodash-es'; import { xor } from 'lodash-es'; import { keys } from 'lodash-es'; import { merge } from 'lodash-es'; import { isFormat } from './jsonSchemaHelpers'; export { isEqual, xor, keys, merge };