Skip to content

createStore

createStore<L>(build): never

Defined in: state/factories.ts:565

Define a compound store: many typed leaves bundled into one serialize/restore unit. The builder receives s and returns a record of leaves; the result spreads those leaves at the top level so game.gold.increment() works.

L extends StoreLeaves

(s) => L

never