Open History to see the last commit
1---
2id: DefinedQueryNarrowing
3title: DefinedQueryNarrowing
4---
5β
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7β
8Defined in: [packages/angular-query/src/types.ts:121](https://github.com/TanStack/query/blob/main/packages/angular-query/src/types.ts#L121)
9β
10Signal-backed guards for a query whose initial data excludes the pending state.
11β
12## Type Parameters
13β
14### TData
15β
16`TData` = `unknown`
17β
18### TError
19β
20`TError` = [`DefaultError`](../type-aliases/DefaultError.md)
21β
22## Properties
23β
24| Property | Type | Description |
25| ------ | ------ | ------ |
26| <a id="property-iserror"></a> `isError` | `SignalFunction`\<() => `this is DefinedCreateQueryResult<TData, TError, QueryObserverRefetchErrorResult<TData, TError>>`\> | Returns whether the result failed and narrows its data and error signals. |
27| <a id="property-ispending"></a> `isPending` | `SignalFunction`\<() => `this is never`\> | Narrows the result to the pending state when that state is possible. |
28| <a id="property-issuccess"></a> `isSuccess` | `SignalFunction`\<() => `this is DefinedCreateQueryResult<TData, TError, QueryObserverSuccessResult<TData, TError>>`\> | Returns whether the result is successful and narrows its data and error signals. |