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:
interfaceState{readonlyprop1: string;readonlyprop2: string;
...
readonlyprop22: string;}equals to:
readonlyinterfaceState{prop1: string;prop2: string;
...
prop22: string;}
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:
equals to: