I am trying to extract a property name from a generic expression.
Normally when using this code below works great.
class Test { name: string;}const test = function<T>(item: ((x: T) => any) ) { return item;} console.log(test<Test>(x=> x.name).toString()) // code above should show function(x) { return x.name};// then I could do substring "name"
but when I enable Hermes
I get function (a0) { [bytecode] }
Which is not really what I want.
Is there a way to solve this? Or a setting I could Apply to hermes?