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.
This entry was posted
on Tuesday, March 10th, 2020 at 1:35 am and is filed under TypeScript.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Questions, comments, and responses are welcomed and appreciated.