UNPKG

@openapi-qraft/react

Version:

OpenAPI client for React, providing type-safe requests and dynamic TanStack Query React Hooks via a modular, Proxy-based architecture.

14 lines (12 loc) 476 B
import type { ServiceOperationInfiniteQueryKey } from '@openapi-qraft/tanstack-query-react-types'; import type { OperationSchema } from './requestFn.js'; import { composeBaseQueryKey } from './composeBaseQueryKey.js'; export function composeInfiniteQueryKey< TSchema extends OperationSchema, TParams, >( schema: TSchema, parameters: TParams | undefined ): ServiceOperationInfiniteQueryKey<TSchema, TParams> { return composeBaseQueryKey(schema, parameters, true); }