Rules of TypeScript Code formatting Scheme

recently, I have seen the official coding specification used by TypeScript to constrain contributors. There are several doubts as follows:

  • Private property names do not use the _ prefix: why not the _ prefix?
  • Don"t add I in front of the
  • interface name: I can understand this a little bit, because interface in TypeScript may be a little different from other languages. But for that type, it would be nice to use type directly. Interface is still used as an abstraction of behavior
  • .
If you have any follow-up doubts, we will continue to add them. You are welcome to discuss them.

Menu