bind-decorator
bind-decorator copied to clipboard
The fastest automatic method.bind(this) decorator
This is what i mean ``` describe('when used to bind to this context', function () { class thisContext { protected test: string; public constructor() { } public getTest(): string {...
Currently, if the super class method is marked with `@bound`, the call to `super` will then overwrite the subclass's version. ```js class Counter extends React.Component { ... @bound handleClick() {...
The [ts docs]() mention: > Either the constructor function of the class for a static member, or the prototype of the class for an instance member. As a long time...