@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
6 lines (5 loc) • 786 B
TypeScript
import { DefinedInitialDataOptions, UndefinedInitialDataOptions } from "@tanstack/react-query";
import { QueryKey } from "@tanstack/query-core";
import { BaseActionOptions, DefinedActionResult, UndefinedActionResult } from "./types";
export declare function useAction<TData, MData, TError, TVariables, TQueryKey extends QueryKey>(options: BaseActionOptions<TData, TVariables, DefinedInitialDataOptions<TData, TError, TData, TQueryKey>, TError, MData>): DefinedActionResult<TData, MData, TVariables, TError>;
export declare function useAction<TData, MData, TError, TVariables, TQueryKey extends QueryKey>(options: BaseActionOptions<TData, TVariables, UndefinedInitialDataOptions<TData, TError, TData, TQueryKey>, TError, MData>): UndefinedActionResult<TData, MData, TVariables, TError>;