If I define a class like this (in a file called. MyClass.ts)
export default class {
static someProperty = 1;
someMethod() {
var a = ????.someProperty
}
}
How do I access someProperty.
Using this.someProperty
does not work, obviously. Neither can a name be used. Had it been a named class it could be accessed through SomeClassName.someProperty
.
If I load the module in another file. I can access it via:
MyClass.someProperty