Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 580 Bytes

File metadata and controls

45 lines (33 loc) · 580 Bytes

typelab / aliases / ReadonlyArray

type ReadonlyArray<T> = readonly T[];

Type that represents a read-only array with elements of type T.

Type Parameters

Type Parameter Default type Description

T

Any

The type of the elements in the read-only array, defaults to any.

Example

// MyReadonlyArray is readonly string[]
type MyReadonlyArray = ReadonlyArray<string>;