Open History to see the last commit
1---
2id: isCancelledError
3title: isCancelledError
4---
5β
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7β
8```ts
9function isCancelledError(value: any): value is CancelledError;
10```
11β
12Defined in: [packages/query-core/src/retryer.ts:136](https://github.com/TanStack/query/blob/main/packages/query-core/src/retryer.ts#L136)
13β
14Checks whether a value is a `CancelledError`.
15β
16## Parameters
17β
18### value
19β
20`any`
21β
22The value to check.
23β
24## Returns
25β
26`value is CancelledError`
27β
28`true` if `value` is a `CancelledError`.
29β
30## Deprecated
31β
32Use instanceof `CancelledError` instead.