Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransitionDefinition<TContext, TEvent>

Type Parameters

Hierarchy

Index

Properties

actions: ActionObject<TContext, TEvent>[]
cond?: Record<string, any> & { type: string } | GuardPredicate<TContext, TEvent>
eventType: NullEvent | "*" | TEvent["type"]
in?: string | StateValueMap
internal?: boolean
meta?: Record<string, any>
source: StateNode<TContext, any, TEvent, { context: TContext; value: any }>
target: undefined | StateNode<TContext, any, TEvent, { context: TContext; value: any }>[]

Methods

  • toJSON(): { actions: ActionObject<TContext, TEvent>[]; cond?: Record<string, any> & { type: string } | GuardPredicate<TContext, TEvent>; eventType: NullEvent | "*" | TEvent["type"]; meta?: Record<string, any>; source: string; target: undefined | string[] }
  • Returns { actions: ActionObject<TContext, TEvent>[]; cond?: Record<string, any> & { type: string } | GuardPredicate<TContext, TEvent>; eventType: NullEvent | "*" | TEvent["type"]; meta?: Record<string, any>; source: string; target: undefined | string[] }

    • actions: ActionObject<TContext, TEvent>[]
    • Optional cond?: Record<string, any> & { type: string } | GuardPredicate<TContext, TEvent>
    • eventType: NullEvent | "*" | TEvent["type"]
    • Optional meta?: Record<string, any>
    • source: string
    • target: undefined | string[]

Generated using TypeDoc