chain-decorator
v1.0.3
Published
ES7 Decorator to allow methods chaining
Downloads
5
Readme
chain-decorator
Simple ES7 Decorator to allow method chaining.
Installation
yarn
yarn add chain-decorator
npm
npm i -S chain-decorator
Usage
import { chain } from 'chain-decorator';
class A {
@chain
foo() {
console.log('foo')
}
}
new A().foo().foo();