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.

11 lines (9 loc) 446 B
import type { ServiceOperationQueryKey } from '@openapi-qraft/tanstack-query-react-types'; import type { OperationSchema } from './requestFn.js'; import { composeBaseQueryKey } from './composeBaseQueryKey.js'; export function composeQueryKey<TSchema extends OperationSchema, TParams>( schema: TSchema, parameters: TParams | undefined ): ServiceOperationQueryKey<TSchema, TParams> { return composeBaseQueryKey(schema, parameters, false); }