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.
Type Parameters
Section titled “Type Parameters”L extends StoreLeaves
Parameters
Section titled “Parameters”(s) => L
Returns
Section titled “Returns”never