1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.MergeWithValues = void 0;
|
4 | const MergeWithValues = (data) => {
|
5 | return (Metatype) => {
|
6 | const Type = class extends Metatype {
|
7 | constructor(...args) {
|
8 | super(...args);
|
9 | }
|
10 | };
|
11 | const token = Metatype.name + JSON.stringify(data);
|
12 | Object.defineProperty(Type, 'name', { value: token });
|
13 | Object.assign(Type.prototype, data);
|
14 | return Type;
|
15 | };
|
16 | };
|
17 | exports.MergeWithValues = MergeWithValues;
|