Class definitions in TypeScript

by bill-s, 2020-03-09T06:29:02.639Z

Cheat sheet: classes in plain JavaScript Basic members of classes Modifier: static Modifier: # (private) Modifiers for accessors: get (getter) and set (setter) Modifier for methods: * (generator) Modifier for methods: async Computed class member names Combinations of modifiers Under the hood More information Non-public data slots in TypeScript Private properties Private fields Private properties vs. private fields Protected properties Private constructors Initializing instance properties Strict property initialization Making constructor parameters public, private, or protected Abstract classes

Read More