How to make object properties read-only or immutable in TypeScript?
Originally Published Here ๐!
To make an object property read-only or immutable, you can use the readonly keyword before the property name in the type declaration for the object in TypeScript.
TL;DR
// Object type declaration
// where the name proper...
melvingeorge-me.hashnode.dev3 min read