---
id: DefinedQueryNarrowing
title: DefinedQueryNarrowing
---
Defined in: [packages/angular-query/src/types.ts:121](https://github.com/TanStack/query/blob/main/packages/angular-query/src/types.ts#L121)
Signal-backed guards for a query whose initial data excludes the pending state.
## Type Parameters
### TData
`TData` = `unknown`
### TError
`TError` = [`DefaultError`](../type-aliases/DefaultError.md)
## Properties
| Property | Type | Description |
| ------ | ------ | ------ |
| `isError` | `SignalFunction`\<() => `this is DefinedCreateQueryResult>`\> | Returns whether the result failed and narrows its data and error signals. |
| `isPending` | `SignalFunction`\<() => `this is never`\> | Narrows the result to the pending state when that state is possible. |
| `isSuccess` | `SignalFunction`\<() => `this is DefinedCreateQueryResult>`\> | Returns whether the result is successful and narrows its data and error signals. |