UNPKG

@eleven-am/xquery

Version:

XQuery is a sophisticated TypeScript wrapper for TanStack React Query, designed to enhance developer productivity with OpenAPI-generated clients. It enables developers to build and execute queries using fully type-safe factories instead of managing query

5 lines (4 loc) 351 B
import { UseAutoSaveActionOptions } from "./types"; import { QueryKey } from "@tanstack/query-core"; import { Dispatch, SetStateAction } from 'react'; export declare function useAutoSaveAction<TData, TError, TQueryKey extends QueryKey>({ delay, options }: UseAutoSaveActionOptions<TData, TError, TQueryKey>): [TData, Dispatch<SetStateAction<TData>>];