TypeScript constructor parameter properties
For those with an OOP background, you'll often find yourself instantiating a new object by passing one or more values via the constructor and then setting them as object properties, like so:
class User {
firstName: string;
lastName: string;
...
chris-seaton.co.uk1 min read