Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil.mysliwiec committed Apr 8, 2017
1 parent 1fcce88 commit e73249f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils/provide-values.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export const ProvideValues = <T extends Constructor<{}>>(data) => {
const type = class extends metatype {
constructor(...args) {
super(args);
Object.assign(this, data);
}
};
const token = metatype.name + JSON.stringify(data);
Object.defineProperty(type, 'name', { value: token });
Object.assign(type.prototype, data);
return type;
}
};

0 comments on commit e73249f

Please sign in to comment.