Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

TraitListArray

TraitListArray<Item> = readonly DeepReadonly<Item>[] & object

A list as a trait holds it: an array read-only to every reader, its items too, so editTrait’s record hands it read-only as well and editList is the one way to change it. The mark, which no value carries, keeps the item’s own type for the field’s handle.

Name Type
[listItemType]? Item
Type Parameter
Item