# isCancelledError

```ts
function isCancelledError(value: any): value is CancelledError;
```

Defined in: [packages/query-core/src/retryer.ts:107](https://github.com/TanStack/query/blob/main/packages/query-core/src/retryer.ts#L107)

Checks whether a value is a `CancelledError`.

## Parameters

### value

`any`

The value to check.

## Returns

`value is CancelledError`

`true` if `value` is a `CancelledError`.

## Deprecated

Use instanceof `CancelledError` instead.
