update
update<
T>(…config: [MiddlewareFunc<Parameters<MethodOf<T,"update">>[0]>]): (target:T) =>DisposeFunc
Defined in: state-machine-hooks.ts:121
update
Enhances the update lifecycle method of a StateMachine.
Returns a disposer to undo the enhancement.
See StateMachine.update.
Usage:
setup(machine)(update(fn))Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends HasMethod<"update"> |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…config | [MiddlewareFunc<Parameters<MethodOf<T, "update">>[0]>] |
Returns
Section titled “Returns”(
target:T):DisposeFunc
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
target | T |