openhands / src /types /react-query.d.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
5f40163 verified
Raw
History Blame Contribute Delete
594 Bytes
import "@tanstack/react-query";
import type { AxiosError } from "axios";
interface MyMeta extends Record<string, unknown> {
disableToast?: boolean;
/**
* When set on a query that targets a specific local backend, a successful
* fetch automatically clears that backend's failure counter in the health
* store — re-arming the status dot without requiring the user to edit the
* backend's config.
*/
backendId?: string;
}
declare module "@tanstack/react-query" {
interface Register {
defaultError: AxiosError;
queryMeta: MyMeta;
mutationMeta: MyMeta;
}
}