Latest video
Latest posts

How to use const assertions in TypeScript

New Features

TypeScript 3.4 introduced const assertions, a feature that allows you to claim a value as immutable. This feature is particularly valuable in combination with array literals, as it prevents new values from being pushed into an existing array.

Continue reading →