File size: 594 Bytes
5f40163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
  }
}