Introduction
The Readonly utility type helps you make an object's properties unchangeable. This means you can protect data from being accidentally changed.
When you want to make sure an object's data stays the same after creation.
When sharing data between parts of a program and you want to avoid accidental changes.
When working with configuration objects that should not be modified.
When you want to clearly show that some data is meant to be constant.
When you want to catch errors early by preventing property changes in your code.