Skip to main content
Version: v8.0.0

PaginationItem

Type of a single list item for the given request and pagination


Import
import { PaginationItem } from "@hyper-fetch/core"

Preview​

type PaginationItem<R,P> = P extends { items: infer Items } ? Items extends (...args: any[]) => infer Output ? ArrayItem<Output> : Items extends keyof NonNullable<ExtractResponseType<R>> ? ArrayItem<NonNullable<ExtractResponseType<R>>[Items]> : never : ArrayItem<ExtractResponseType<R>>;