--- id: isCancelledError title: isCancelledError --- ```ts function isCancelledError(value: any): value is CancelledError; ``` Defined in: [packages/query-core/src/retryer.ts:94](https://github.com/TanStack/query/blob/main/packages/query-core/src/retryer.ts#L94) ## Parameters ### value `any` ## Returns `value is CancelledError` ## Deprecated Use instanceof `CancelledError` instead.