UNPKG

@toomuchdesign/ajv-type-provider-json-schema-to-ts

Version:
12 lines (11 loc) 533 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.enhanceValidateWithTypeInference = exports.enhanceCompileWithTypeInference = void 0; const enhanceCompileWithTypeInference = (compile) => (schema) => { return compile(schema); }; exports.enhanceCompileWithTypeInference = enhanceCompileWithTypeInference; const enhanceValidateWithTypeInference = (validate) => (schema, data) => { return validate(schema, data); }; exports.enhanceValidateWithTypeInference = enhanceValidateWithTypeInference;