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

DefinedInfiniteQueryNarrowing.md

28 lines1.6 KB

Defined in: packages/angular-query/src/types.ts:196

Signal-backed guards for a paginated query whose initial data excludes the pending state.

Type Parameters

TData

TData = unknown

TError

TError = DefaultError

Properties

PropertyTypeDescription
isErrorSignalFunction<(this: DefinedCreateInfiniteQueryResult<TData, TError>) => this is DefinedCreateInfiniteQueryResult<TData, TError, InfiniteQueryObserverRefetchErrorResult<TData, TError>>>Returns whether the result failed and narrows its data and error signals.
isPendingSignalFunction<(this: DefinedCreateInfiniteQueryResult<TData, TError>) => this is never>Narrows the result to the pending state when that state is possible.
isSuccessSignalFunction<(this: DefinedCreateInfiniteQueryResult<TData, TError>) => this is DefinedCreateInfiniteQueryResult<TData, TError, InfiniteQueryObserverSuccessResult<TData, TError>>>Returns whether the result is successful and narrows its data and error signals.