--- id: BaseQueryNarrowing title: BaseQueryNarrowing --- Defined in: [packages/angular-query-experimental/src/types.ts:80](https://github.com/TanStack/query/blob/main/packages/angular-query-experimental/src/types.ts#L80) The `isSuccess`/`isError`/`isPending` methods on a query result. Unlike `react-query`'s derived booleans, these are type-guard methods you call — `if (query.isSuccess())` — so that `query.data` narrows away `undefined` inside the branch, the same way `status` narrowing works on the plain object `react-query` returns. ## Type Parameters ### TData `TData` = `unknown` The type `data` ends up as after `select` runs. ### TError `TError` = [`DefaultError`](../type-aliases/DefaultError.md) The type of errors your `queryFn` may throw. ## Properties | Property | Type | Description | | ------ | ------ | ------ | | `isError` | (`this`: [`CreateBaseQueryResult`](../type-aliases/CreateBaseQueryResult.md)\<`TData`, `TError`\>) => `this is CreateBaseQueryResult>` | Returns `true` if the query is in the `error` state, narrowing the result to that state. | | `isPending` | (`this`: [`CreateBaseQueryResult`](../type-aliases/CreateBaseQueryResult.md)\<`TData`, `TError`\>) => `this is CreateBaseQueryResult>` | Returns `true` if the query is in the `pending` state, narrowing the result to that state. | | `isSuccess` | (`this`: [`CreateBaseQueryResult`](../type-aliases/CreateBaseQueryResult.md)\<`TData`, `TError`\>) => `this is CreateBaseQueryResult>` | Returns `true` if the query is in the `success` state, narrowing the result to that state. |