I would like to know if is possible to have a way to resolve the generic name, for example:
enum MyEnum {
A: 'a',
B: 'b'
}
const Id = <Foo>(c: Foo[keyof Foo]) => {
return `${nameof.resolveGeneric<Foo>()}-${c}`;
}
console.log(Id<MyEnum>(MyEnum.A));
Should print MyEnum-a;
Currently nameof<Foo> prints Foo-a;
I would like to know if is possible to have a way to resolve the generic name, for example:
Should print
MyEnum-a;Currently
nameof<Foo>printsFoo-a;