@yantrix/react v0.2.0 • Docs
Yantrix API / @yantrix/react / TTraceTransaction
Type Alias: TTraceTransaction<StateType, ActionType, ContextType, PayloadType>
ts
type TTraceTransaction<StateType, ActionType, ContextType, PayloadType>: object;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;