@epikodelabs/actionstack / Dispatch
Type Alias: Dispatch()<TState, TDependencies>
Dispatch<
TState,TDependencies> = (action) =>Promise<void>
Defined in: types.ts:35
Dispatch function signature for synchronous actions and thunks.
Type Parameters
TState
TState = any
The store state shape.
TDependencies
TDependencies = any
Dependencies available to async actions.
Parameters
action
Action | AsyncAction<TState, TDependencies>
Returns
Promise<void>