Initial commit - Event Planner application
This commit is contained in:
18
node_modules/@nestjs/common/utils/merge-with-values.util.js
generated
vendored
Normal file
18
node_modules/@nestjs/common/utils/merge-with-values.util.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MergeWithValues = void 0;
|
||||
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
||||
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;
|
||||
Reference in New Issue
Block a user