forwardTo
Callable
Type parameters
- TContext: MachineContext
- TExpressionEvent: EventObject
- TParams: NonReducibleUnknown
- TEvent: EventObject
- TDelay: string
Parameters
target: Target<TContext, TExpressionEvent, TParams, TEvent>
The target service to forward the event to.
optionaloptions: SendToActionOptions<TContext, TExpressionEvent, TParams, TEvent, TDelay>
Options to pass into the send action creator.
Returns SendToAction<TContext, TExpressionEvent, TParams, TEvent, TDelay>
Forwards (sends) an event to a specified service.