Skip to content

DefinedInfiniteQueryNarrowing

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

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.