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

TraitOptions

TraitOptions<Record, Listed, Types> = TraitReaches<Record, Listed, Types>["streamed"] & UnpredictedOptions | TraitReaches<Record, Listed, Types>["unstreamed"] & UnpredictedOptions & object | TraitReaches<Record, Listed, Types>["predicted"]

Who a room streams a trait to, and the entities it holds. With no reach, the room streams it to every page that holds its entity.

Type Parameter Default type
Record -
Listed extends string never
Types extends TraitNumberTypes<Record> TraitNumberTypes<Record>