Sequence NODE_178
EasyCreate a Readonly Array Type
TypeScript
Technical Specification
Define a type ReadonlyStringList that is a readonly array of strings.
Input/Output Samples
Input:push on ReadonlyStringList
Output:Type error
Optimal Logic Path
type ReadonlyStringList = ReadonlyArray<string>;Architectural Deep-Dive
Readonly arrays enforce that the collection cannot be modified after creation.