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.

9 lines 650 B
import type { ServiceOperationMutationKey } from '@openapi-qraft/tanstack-query-react-types'; import type { OperationSchema } from './requestFn.js'; /** * Omit `body` or `requestBody` from mutation parameters if exists * and return the rest of the parameters */ export declare function composeMutationKey<TSchema extends OperationSchema>(schema: TSchema, parameters: undefined): ServiceOperationMutationKey<TSchema, undefined>; export declare function composeMutationKey<TSchema extends OperationSchema, TParams>(schema: TSchema, parameters: TParams): ServiceOperationMutationKey<TSchema, TParams>; //# sourceMappingURL=composeMutationKey.d.ts.map