- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
18 lines
554 B
JavaScript
18 lines
554 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.MergeWithValues = void 0;
|
|
const MergeWithValues = (data) => {
|
|
return (Metatype) => {
|
|
const Type = class extends Metatype {
|
|
constructor(...args) {
|
|
super(...args);
|
|
}
|
|
};
|
|
const token = Metatype.name + JSON.stringify(data);
|
|
Object.defineProperty(Type, 'name', { value: token });
|
|
Object.assign(Type.prototype, data);
|
|
return Type;
|
|
};
|
|
};
|
|
exports.MergeWithValues = MergeWithValues;
|