class A {
public static readonly TYPE = "A";
}
interface forA {
for: A.TYPE
}
I am facing an issue while trying to access A.TYPE
from the forA
interface in order to perform type guarding.
The error I encounter is:
TS2702: 'A' only refers to a type, but is being used as a namespace here
.
Anyone know of a workaround for this situation?