@toomuchdesign/ajv-type-provider-json-schema-to-ts
Version:
An ajv type provider based on json-schema-to-ts
12 lines (11 loc) • 533 B
JavaScript
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;
;