Quantcast
Channel: Typescript decorators not working with arrow functions - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Estus Flask for Typescript decorators not working with arrow functions

performaceLog is supposed to work with prototype methods only because it relies on descriptor, which should be optional.There is no descriptor in case of handleMessage = message => ... class field...

View Article



Typescript decorators not working with arrow functions

I have a typescript decorator factory which console logs total time taken to execute a function, actual function execution results and parameters passed to the decorator as well.e.g. export function...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images