Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

readInterruptBinding.md

26 lines667 Bytes

1---
2id: readInterruptBinding
3title: readInterruptBinding
4---
5​
6```ts
7function readInterruptBinding(descriptor): InterruptBinding | undefined;
8```
9​
10Defined in: [packages/ai/src/interrupt-resume.ts:927](https://github.com/TanStack/ai/blob/main/packages/ai/src/interrupt-resume.ts#L927)
11​
12Read the opened resume binding off a descriptor, or `undefined` when the
13descriptor carries no binding of a version we understand.
14​
15`undefined` means "this interrupt is not ours to resume" — it is not a
16failure to recover from by inventing a binding.
17​
18## Parameters
19​
20### descriptor
21​
22`Interrupt`
23​
24## Returns
25​
26[`InterruptBinding`](../type-aliases/InterruptBinding.md) \| `undefined`