@respeecher/respeecher-js
Version:
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Frespeecher%2Frespeecher-js) [ • 660 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createIdentitySchemaCreator = createIdentitySchemaCreator;
const index_js_1 = require("../builders/schema-utils/index.js");
const maybeSkipValidation_js_1 = require("./maybeSkipValidation.js");
function createIdentitySchemaCreator(schemaType, validate) {
return () => {
const baseSchema = {
parse: validate,
json: validate,
getType: () => schemaType,
};
return Object.assign(Object.assign({}, (0, maybeSkipValidation_js_1.maybeSkipValidation)(baseSchema)), (0, index_js_1.getSchemaUtils)(baseSchema));
};
}