chain-decorator

1.0.3 • Public • Published

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();

Package Sidebar

Install

npm i chain-decorator

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

2.05 kB

Total Files

4

Last publish

Collaborators

  • morr