Duration
3 min
Access
Pro
Transcript
Available

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