I am working with a class that uses a generic type like this:
SomeGenericClass<T>{
constructor(){
}
}
Within some of the functions, I log messages and want to refer to the current type T
of the generic class in my logs.
I have attempted the following:
T.constructor.name
Object.getPrototypeOf(T).constructor.name
However, both result in cannot find name 'T'
Is there any way I can achieve this?
Thank you in advance!