UNPKG

kindagoose

Version:
17 lines 619 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertToSchemaRegistrationOptions = void 0; const convertToSchemaRegistrationOptions = (schemas) => { return schemas.map(schema => { return 'schema' in schema && schema.schema ? { schema: schema.schema, discriminators: schema.discriminators, } : { schema: schema, }; }); }; exports.convertToSchemaRegistrationOptions = convertToSchemaRegistrationOptions; //# sourceMappingURL=convert-to-schema-registration-options.js.map