Typescript Constructor Shorthand
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:
class User {
private name: string;
private surname: string;
priva...
ivanov.hashnode.dev1 min read