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

ReadonlyLiveState

ReadonlyLiveState<T> = T extends readonly unknown[] ? { readonly [Index in keyof T]: ReadonlyLiveState<T[Index]> } : T extends object ? { readonly [Key in keyof T]: ReadonlyLiveState<T[Key]> } : T

A live state as every reader shares it: no field a reader can change, at any depth, a tuple keeping its places.

Type Parameter
T