@ts-rest/react-query
Version:
react-query client integration for @ts-rest
6 lines (5 loc) • 628 B
TypeScript
import { QueryClient } from '@tanstack/react-query';
import { AppRouter, ClientArgs } from '@ts-rest/core';
import { TsRestReactQueryHooksContainer, TsRestReactQueryClient } from '../types';
export declare const initHooksContainer: <TContract extends AppRouter, TClientArgs extends ClientArgs>(contract: TContract, clientOptions: TClientArgs) => TsRestReactQueryHooksContainer<TContract, TClientArgs>;
export declare const initQueryClient: <TContract extends AppRouter, TClientArgs extends ClientArgs>(contract: TContract, clientOptions: TClientArgs, queryClient: QueryClient) => TsRestReactQueryClient<TContract, TClientArgs>;