kindagoose
Version:
Integrate Typegoose with NestJS!
17 lines • 619 B
JavaScript
;
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