UNPKG

@dbs-portal/core-api

Version:

HTTP client and API utilities for DBS Portal

23 lines 692 B
/** * TanStack Query provider component */ import { type QueryClient } from '@tanstack/react-query'; import type { ApiClient } from '../client/api-client'; import type { ReactNode } from 'react'; /** * Query provider props */ export interface QueryProviderProps { children: ReactNode; apiClient?: ApiClient; queryClient?: QueryClient; } /** * Query provider component that sets up TanStack Query */ export declare function QueryProvider({ children, apiClient, queryClient }: QueryProviderProps): import("react/jsx-runtime").JSX.Element; /** * Hook to access the query client */ export { useQueryClient } from '@tanstack/react-query'; //# sourceMappingURL=provider.d.ts.map