You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when the method is static or not an arrow function - everything works as expected
however, when the method is written as arrow function this happens
am i missing something?
Que.add() works as expected if used without the decorator
The text was updated successfully, but these errors were encountered:
Perhaps you can provide a playground link, as the issue template asked for? The code you provided does not work.
the typescript playground has too many issues with running typescript so i cant.
I've edited the original post to include 2 examples that i can compile and run, sorry if the first one was broken!
EDIT: it looks like, when you use arrow function its not initialized in the decorator but after the decorator returns the property is initialized and overridden with the original function. In any case we need a way to decorate arrow functions as well as normal properties.
I tried it out - you get lib errors if you're not using a newer target and on top of that, the playground uses JSX which interferes with generic arrow function syntax. Kind of a pain, but you can get it get rid of the errors by setting JSX to none and using /// <reference lib="esnext" />.
Still, can you at least provide something like the tsconfig options?
Bug Report
馃攷 Search Terms
decorator arrow functions async generator
馃捇 Code
this works as expected
this doesn't
when the method is static or not an arrow function - everything works as expected
however, when the method is written as arrow function this happens
am i missing something?
Que.add() works as expected if used without the decorator
The text was updated successfully, but these errors were encountered: