• Posts
  • Javascript
  • React
  • About
  • Videos

Typescript

Typescript Constructor Shorthand

February 22, 2019Typescript

Here is a thing, in Typescript there is a shorthand to create and assign class properties from constructor params. Imagine you have following code, let's say you have class User: You can write same class using shorter sy