Type Alias GuardParams<D, N>

GuardParams<D, N>: {
    context: Context<D>;
    event: GuardEvent<D, N>;
}

The type of parameters for the guard function.

Type Parameters

  • D

    The type of the state machine definition.

  • N extends string

    The type of guard name.

Type declaration

  • context: Context<D>

    The current context of the state machine.

  • event: GuardEvent<D, N>

    The event that triggered the transition.