typelab / aliases / ReadonlyTuple
type ReadonlyTuple<T> = readonly [...T];Type that represents a read-only tuple, which is a fixed-length, immutable array of elements of type T.
| Type Parameter | Default type | Description |
|---|---|---|
|
|
|
The type of the elements in the read-only tuple, defaults to |
// MyReadonlyTuple is readonly [number, string]
type MyReadonlyTuple = ReadonlyTuple<[number, string]>;