jburzynski/TypeGen

Static Class

Opened this issue · 0 comments

Hello!

Thank you for this amazing tool, it's very useful. I would like to promote a reflection of possibility of handle static class, due to there is an equivalent representation on ES side, through as same as "fake static class" see bellow

class StaticClass {
  constructor() {
    if (this instanceof StaticClass) {
      throw Error('A static class cannot be instantiated.');
    }
  }
}

What is the reason of this type is not currently supported?
If it's due time to implement, I would like to bring this feature, if you can give me more informations of possible limitations and toughts of why this was not implemented yet?

Cheers!