Is something like this possible?
const propName = "x";
class A {
static propName = 1
// equivalent to static x = 1
}
A[propName] // evaluates to 1
or would it be (typeof A)[propName]
?
For obvious reasons, this is not a duplicate of this question