Skip to content

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.

TState

The shape of the store’s state slice

TActions

The shape of the actions object returned

SetState<TState>

GetState<TState>

TActions