Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

BaseInfiniteQueryNarrowing.md

28 lines1.6 KB

1---
2id: BaseInfiniteQueryNarrowing
3title: BaseInfiniteQueryNarrowing
4---
5​
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7​
8Defined in: [packages/angular-query/src/types.ts:138](https://github.com/TanStack/query/blob/main/packages/angular-query/src/types.ts#L138)
9​
10Signal-backed guards that narrow a paginated query result by its current status.
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`: [`CreateInfiniteQueryResult`](../type-aliases/CreateInfiniteQueryResult.md)\<`TData`, `TError`\>) => `this is CreateInfiniteQueryResult<TData, TError, CreateStatusBasedInfiniteQueryResult<"error", TData, TError>>`\> | Returns whether the result failed and narrows its data and error signals. |
27| <a id="property-ispending"></a> `isPending` | `SignalFunction`\<(`this`: [`CreateInfiniteQueryResult`](../type-aliases/CreateInfiniteQueryResult.md)\<`TData`, `TError`\>) => `this is CreateInfiniteQueryResult<TData, TError, CreateStatusBasedInfiniteQueryResult<"pending", TData, TError>>`\> | Narrows the result to the pending state when that state is possible. |
28| <a id="property-issuccess"></a> `isSuccess` | `SignalFunction`\<(`this`: [`CreateInfiniteQueryResult`](../type-aliases/CreateInfiniteQueryResult.md)\<`TData`, `TError`\>) => `this is CreateInfiniteQueryResult<TData, TError, CreateStatusBasedInfiniteQueryResult<"success", TData, TError>>`\> | Returns whether the result is successful and narrows its data and error signals. |