Implementing Immutable Classes in TypeScript
How do you guys implement immutable classes? In Scala (sorry I'm primarily a Scala dev), we have a
Example:
How to achieve this
.copy method in each case class (a "record"), which allows us to make a copy of an instance and modify a fieldExample:
How to achieve this
.copy thing in TS?