I am trying to pass a method to a typescript decorator. I am able to do so when I do this as an inline arrow function. But I am not able to do this in the following way: