Declare Read-Only Tuple Types in TypeScript

Share this video with your friends

Send Tweet

Similar to how we can declare read-only array types, we can declare read-only tuple types using the readonly modifier. Any attempt to mutate a value of a read-only tuple type will result in a type error.

Additional Reading