---
title: readyOf
description: The `ready` output of an `onDone` arm that `isReady` guards.
---

# `readyOf`

Function, in `@jr2/orchestrator/src/worktree.ts`. It is an export of `@jr2/orchestrator`, in the [Effects](group-effects.md) group of the [Authoring surface](../authoring-surface.md) page.

```ts
function readyOf<O extends { outcome: string }>(output: O): Extract<O, { outcome: "ready" }>
```

The `ready` output of an `onDone` arm that `isReady` guards. xstate carries no guard's narrowing
to its actions, so an `assign` reads the output through this.

**Parameters**

- `output`

  - `outcome`: `string`
