@autometa/bind-decorator
v0.5.1
Published
Binds the this keyword of a method. Respectfully a fork of https://www.npmjs.com/package/bind-decorator
Downloads
241
Maintainers
Readme
Introduction
Binds the this
keyword on a class method.
This is a fork of bind-decorator for use with Autometa.
npm add @autometa/bind-decorator
Use
import { Bind } from "@autometa/bind-decorator";
class Foo {
@Bind
a() {
// this.doStuff()
}
}