Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface StateNodeDefinition<TContext, TStateSchema, TEvent>

Type parameters

Hierarchy

Index

Properties

activities

activities: Array<ActivityDefinition<TContext>>

Optional after

after: DelayedTransitions<TContext, TEvent>

The mapping (or array) of delays (in milliseconds) to their potential transition(s). The delayed transitions are taken after the specified delay in an interpreter.

Optional context

context: TContext

The initial context (extended state) of the machine.

Optional data

data: any

Optional delimiter

delimiter: undefined | string

The string delimiter for serializing the path to a string. The default is "."

history

history: boolean | "shallow" | "deep" | undefined

id

id: string

initial

initial: undefined | keyof TStateSchema["states"]

Optional invoke

invoke: InvokesConfig<TContext, TEvent>

The services to invoke upon entering this state node. These services will be stopped upon exiting this state node.

key

key: string

meta

meta: any

on

on: TransitionsDefinition<TContext, TEvent>

Optional onDone

onDone: string | TransitionConfig<TContext, DoneEventObject> | Array<TransitionConfig<TContext, DoneEventObject>>

The potential transition(s) to be taken upon reaching a final child state node.

This is equivalent to defining a [done(id)] transition on this state node's on property.

onEntry

onEntry: Array<ActionObject<TContext>>

onExit

onExit: Array<ActionObject<TContext>>

order

order: number

Optional parallel

parallel: boolean | undefined
deprecated

Optional Private parent

parent: StateNode<TContext>

states

states: StatesDefinition<TContext, TStateSchema, TEvent>

Optional strict

strict: boolean | undefined

type

Generated using TypeDoc