Closed viridia closed 5 years ago
BTW I've switched over to using bind-decorator for my TypeScript projects, which has similar functionality but supports more recent versions of TypeScript. I still use autobind-decorator for my JS projects.
@viridia PR welcome
I think this may have been fixed? I just started using this decorator with TypeScript 2.9.2 and it seems to work fine... anyways, thanks for making this @andreypopp, it's very helpful!
@toolness did you see https://github.com/andreypopp/autobind-decorator/pull/57?
Any updates on this?
I think this may have been fixed? I just started using this decorator with TypeScript 2.9.2 and it seems to work fine... anyways, thanks for making this @andreypopp, it's very helpful!
Seems its not a problem anymore. reopen if it still is.
TypeScript recently changed how decorators work (it's actually simpler), but autobind-decorator no longer works.
Here's an implementation that works under 2.4 (written in TypeScript) (only works for methods since that's all I use):