TypeScript: readonly vs. const
From The TypeScript Handbook:
The easiest way to remember whether to use readonly or const is to ask whether your using it on a variable or a property. Variables use const whereas properties use readonly.
From The TypeScript Handbook:
The easiest way to remember whether to use readonly or const is to ask whether your using it on a variable or a property. Variables use const whereas properties use readonly.