StateNodeConfig.output property​
The output data sent with the "xstate.done.state._id_" event if this is a final state node.
The output data will be evaluated with the current context
and placed on the .data
property of the event.
Signature:
output?: Mapper<TContext, TEvent, unknown, TEvent> | NonReducibleUnknown;