ActionsCreator
Type Alias: ActionsCreator<TState, TActions>
Section titled “Type Alias: ActionsCreator<TState, TActions>”ActionsCreator<
TState,TActions> = (set,get) =>TActions
Defined in: types.ts:20
A function that defines store actions given access to set/get.
Type Parameters
Section titled “Type Parameters”TState
Section titled “TState”TState
The shape of the store’s state slice
TActions
Section titled “TActions”TActions
The shape of the actions object returned
Parameters
Section titled “Parameters”SetState<TState>
GetState<TState>
Returns
Section titled “Returns”TActions