• Returns all proper states (excluding root). Includes all descendants of root.

    To retrieve all states (including the root/machine itself), use getAllStates.

    Returns

    A list of all proper states.

    Type Parameters

    • TContext

    • TStateSchema extends StateSchema<any, TStateSchema>

    • TEvent extends EventObject

    • TStateMachine extends StateMachine<TContext, TStateSchema, TEvent, any, any, any, ResolveTypegenMeta<TypegenDisabled, NoInfer<TEvent>, any, any>, TStateMachine>

    • TStateNode extends StateNode<TContext, TStateSchema, TEvent, any, any, any, TStateNode>

    Parameters

    • root: TStateMachine | TStateNode

      The StateMachine or StateNode for which to get all proper states.

    Returns StateNodeDefinition<TContext, TStateSchema, TEvent>[]

Generated using TypeDoc