class A {
public static readonly TYPE = "A";
}
interface forA {
for: A.TYPE
}
As you can see, I'm trying to access A.TYPE
from forA
, so that I can do a form of type guarding.
But, I'm getting the error: TS2702: 'A' only refers to a type, but is being used as a namespace here
.
Is there a work around for this?