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

RestoreContext

RestoreContext<Scope> = Scope extends `${Entity}` ? EntityRestoreContext : SaveContext<Scope>

What a save’s restore receives in Scope: as SaveContext, with the saved entity’s predicted traits writable in an entity’s.

Type Parameter Default type
Scope extends SaveScopeName SaveScopeName