Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
API Reference
API Reference

isCancelledError

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

Defined in: packages/query-core/src/retryer.ts:136

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.