Skip to content

Glossary: TypeScript Basics

readonly

Also written: read-only, readonly array

A property or array marked `readonly` can't be changed after creation. `readonly string[]` removes methods like `push`.

Where the book teaches it

Related terms

as constinterface