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.

1 lines 1.07 kB
{"version":3,"file":"getInfiniteQueryKey.cjs","sources":["../../../src/callbacks/getInfiniteQueryKey.ts"],"sourcesContent":["import type {\n OperationSchema,\n ServiceOperationUseInfiniteQuery,\n} from '@openapi-qraft/tanstack-query-react-types';\nimport type { DefaultError } from '@tanstack/react-query';\nimport type { CreateAPIBasicClientOptions } from '../qraftAPIClient.js';\nimport { composeInfiniteQueryKey } from '../lib/composeInfiniteQueryKey.js';\n\nexport const getInfiniteQueryKey = (\n _qraftOptions: CreateAPIBasicClientOptions,\n schema: OperationSchema,\n args: Parameters<\n ServiceOperationUseInfiniteQuery<\n OperationSchema,\n unknown,\n unknown,\n DefaultError\n >['getInfiniteQueryKey']\n >\n) => {\n return composeInfiniteQueryKey(schema, args[0]);\n};\n"],"names":["getInfiniteQueryKey","_qraftOptions","schema","args","composeInfiniteQueryKey"],"mappings":";;;;AAQaA,MAAAA,mBAAAA,GAAsB,CACjCC,aAAAA,EACAC,MACAC,EAAAA,IAAAA,GAAAA;AASA,IAAA,OAAOC,+CAAwBF,CAAAA,MAAAA,EAAQC,IAAI,CAAC,CAAE,CAAA,CAAA,CAAA;AAChD;;;;"}