I have a class of a generic type as follows:
SomeGenericClass<T>{
constructor(){
}
}
within some of its' functions i log some messages and would like to refer to the current type T
of the generic class in my log.
I've tried
T.constructor.name
Object.getPrototypeOf(T).constructor.name
with no success, both produce cannot find name 'T'
Any ideas how can i achieve this?
Thanks in advance!