I want to write es6 class:
class SomeClass { static prop = 123 method() { } }
How to get access to static prop from <
prop
It's a bit dirty, but this code works for me in the Typescript Playground:
class SomeClass { static prop = 123; constructor() { console.log(this.constructor["prop"]); } } var a = new SomeClass();