Read-only and optional class properties with TypeScript
Looking into creating a class in TypeScript, I came across two tidbits that struck me as really interesting. The first is the ability to mark a class property as read-only, i.e. once initialised, that property cannot be updated. You can do this by si...
chris-seaton.co.uk1 min read