Skip to content

Commit

Permalink
Breaking: 'Decorator' as named export
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Oct 18, 2019
1 parent 1b32d96 commit 2dc6721
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {
classMethodDecorator,
classDecorator
} from './decorators';

module.exports = class Decorator {
// TODO change from log(opts)(func) to log(func, opts)
export class Decorator {
constructor(opts = {}) {
return (...args) => {
return (target, methodName, descriptor) => {
Expand All @@ -26,4 +26,4 @@ module.exports = class Decorator {
};
};
}
};
}

0 comments on commit 2dc6721

Please sign in to comment.