TypeScript: readonly vs. const
March 10th, 2020
Posted in TypeScript
|
No Comments
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.