Skip to content

@epikodelabs/actionstack


@epikodelabs/actionstack / ThunkAction

Type Alias: ThunkAction<TState, TDependencies>

ThunkAction<TState, TDependencies> = AsyncAction<TState, TDependencies> & object

Defined in: types.ts:104

An async thunk action (function) with attached metadata used by the starter middleware.

Type Declaration

type

type: string

toString()

toString: () => string

Returns

string

match()

match: (action) => action is Action<any>

Parameters

action

unknown

Returns

action is Action<any>

isThunk

isThunk: true

triggers?

optional triggers: ReadonlyArray<ThunkTrigger>

Type Parameters

TState

TState = any

TDependencies

TDependencies = any

Released under the MIT License.