Open
Description
Avoid duplicating "readonly" for each property by applying it to the interface definition itself.
This is to reduce boilerplate code defining immutable objects.
Having interface where ALL properties are read only:
interface State {
readonly prop1: string;
readonly prop2: string;
...
readonly prop22: string;
}
equals to:
readonly interface State {
prop1: string;
prop2: string;
...
prop22: string;
}