Type Alias: ActionCreator<TPayload, TType, TArgs>
ActionCreator<
TPayload,TType,TArgs> = (...args) =>Action<TPayload> &object
Defined in: types.ts:50
Creates a synchronous action with optional metadata and helpers for identification.
Type declaration
handler
handler:
ActionHandler
toString()
toString():
string
Returns
string
type
type:
TType
match()
match(
action):boolean
Parameters
action
Action<TPayload>
Returns
boolean
Type Parameters
TPayload
TPayload = any
Type of the payload for the created action.
TType
TType extends string = string
String literal type of the action.
TArgs
TArgs extends readonly any[] = any[]
Argument types accepted by the action creator function.
Returns
A function that produces an Action when invoked, with metadata for matching and debugging.