addEventApi
addEventApi<
M
>(target
:M
):addEventApi
<M
>
Defined in: factory-machine-event-api.ts:51
Enhances a FactoryMachine instance with an API property containing event sender functions.
Type Parameters
Section titled “Type Parameters”Type Parameter | Description |
---|---|
M extends FactoryMachine <any > | Type of FactoryMachine |
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
target | M | The machine instance to enhance |
Returns
Section titled “Returns”addEventApi
<M
>
The enhanced machine with an api property