Type Alias SetContext<D>

SetContext<D>: ((action: SetContextAction<D>) => SetContextReturn<D>)

The type of the function to update the context of the state machine.

Type Parameters

  • D

    The type of the state machine definition.

Type declaration

    • (action): SetContextReturn<D>
    • The function to update the context of the state machine.

      Parameters

      Returns SetContextReturn<D>

      The object with the send function to send an event to the state machine.