Signature: {
    dispatch: ((action: Action.Signature) => void);
    getState: (() => State.Signature);
    instance: Machine.Signature;
    send: Send.Signature;
    setContext: Config.SetContext.Signature;
    subscribe: ((callback: ((state: State.Signature) => void)) => (() => void));
}

Type declaration

  • Readonlydispatch: ((action: Action.Signature) => void)

    The dispatch function to send an event to the shared state machine.

      • (action): void
      • Dispatch an action to the shared state machine.

        Parameters

        Returns void

  • ReadonlygetState: (() => State.Signature)

    The current state of the shared state machine.

  • Readonlyinstance: Machine.Signature

    Instance of the state machine.

  • Readonlysend: Send.Signature

    The send function to send an event to the shared state machine.

  • ReadonlysetContext: Config.SetContext.Signature

    The function to set the context of the shared state machine.

  • Readonlysubscribe: ((callback: ((state: State.Signature) => void)) => (() => void))

    Subscribes to state changes in the shared state machine.

      • (callback): (() => void)
      • Parameters

        • callback: ((state: State.Signature) => void)

          A function that is called whenever the state machine changes state.

        Returns (() => void)

        A function to unsubscribe from state changes.

          • (): void
          • Returns void