Interface: ActionContext
Low level action context.
Properties
actionName
readonly actionName: string;
Action name
args
readonly args: readonly any[];
Array of action arguments.
asyncStepType?
readonly optional asyncStepType?: ActionContextAsyncStepType;
Async step type, or undefined for sync actions.
data
readonly data: Record<symbol, any>;
Custom data for the action context to be set by middlewares, an object. Symbols must be used as keys to avoid name clashing between middlewares.
parentContext?
readonly optional parentContext?: ActionContext;
Parent action context, if any.
previousAsyncStepContext?
readonly optional previousAsyncStepContext?: ActionContext;
Previous async step context, undefined for sync actions or the first action of a flow.
rootContext
readonly rootContext: ActionContext;
Root action context, or itself if the root.
spawnAsyncStepContext?
readonly optional spawnAsyncStepContext?: ActionContext;
Spawn async step context, undefined for sync actions.
target
readonly target: object;
Action target object.
type
readonly type: ActionContextActionType;
Action type, sync or async.