@yantrix/react v0.6.0 • Docs
Yantrix API / @yantrix/react / TTraceTransaction
Type Alias: TTraceTransaction<StateType, ActionType, ContextType, PayloadType> ​
ts
type TTraceTransaction<StateType, ActionType, ContextType, PayloadType>: object;Snapshot of a single dispatch for debugging via the trace() call.
Type Parameters ​
• StateType extends TAutomataBaseStateType
• ActionType extends TAutomataBaseActionType
• ContextType extends { [K in StateType]: any } = { [K in StateType]: any }
• PayloadType extends { [K in ActionType]: any } = { [K in ActionType]: any }
Type declaration ​
id ​
ts
id: string;lastPayload ​
ts
lastPayload: TAutomataActionPayload<ActionType, PayloadType>;previousContext ​
ts
previousContext: TAutomataStateContext<StateType, ContextType>;stack? ​
ts
optional stack: Error["stack"];timestamp ​
ts
timestamp: Date;