switchyard
    Preparing search index...

    Function toPromise

    • Resolves with the machine's output getter once it reaches a top-level final state.

      Type Parameters

      Parameters

      • machine: M

      Returns Promise<unknown>