The initial state of the store.
OptionaldefineActions: null | DefineActions<TState, TActions> = nullA function that defines actions that can modify the state.
Optionaloptions: StoreOptions<TState> = {}Additional options for the store.
The created store with state management methods.
Creates a store with an initial state and actions that can modify the state.