Is there a way that I can get the actual class type of a this context inside of a class? Example below:
class TestClass {
static prop = {
testing: true
}
someFunc() {
// type Explicit = typeof TestClass.prop -> { testing: true } works fine
// But I want something like ->
type TestType = this // -> this
// I want something like:
// type TestClassType = typeof this."class" -> TestClass
// type TestClassProp = typeof TestClassType.prop -> { testing: true }
}
Basically I want to be able to reference the type of the class for an instance. Is this possible?