readonly tuple types
Tuple types have readonly variants, and can be
specified by sticking a readonly modifier in front
of them - just like with array shorthand syntax
function doSomething(pair: readonly [string, number]) {
// ...
}
Tuple types have readonly variants, and can be
specified by sticking a readonly modifier in front
of them - just like with array shorthand syntax
function doSomething(pair: readonly [string, number]) {
// ...
}