typelab / aliases / ReadonlyArray
type ReadonlyArray<T> = readonly T[];Type that represents a read-only array with elements of type T.
| Type Parameter | Default type | Description |
|---|---|---|
|
|
The type of the elements in the read-only array, defaults to |
// MyReadonlyArray is readonly string[]
type MyReadonlyArray = ReadonlyArray<string>;