Skip to content

ActionEvent<T>

@blobs/sdk v0.1.0


@blobs/sdk / actions/types / ActionEvent

Defined in: actions/types.ts:175

Payload delivered to ActionEventCallback subscribers.

Type Parameters

T

T = unknown

Result data type for the related action, when applicable.

Properties

type

type: ActionEventType

Defined in: actions/types.ts:177

The event type that triggered the callback.


action

action: Action<unknown, unknown, unknown>

Defined in: actions/types.ts:179

The action involved in the event.


result?

optional result?: ActionResult<T>

Defined in: actions/types.ts:181

Execution result, present on *:completed/*:failed events.


timestamp

timestamp: number

Defined in: actions/types.ts:183

Wall-clock timestamp (ms) when the event was emitted.


historyIndex?

optional historyIndex?: number

Defined in: actions/types.ts:185

Index in history stack


historyLength?

optional historyLength?: number

Defined in: actions/types.ts:187

Total history length