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