This commit is contained in:
Fred KISSIE
2025-12-03 19:28:07 +01:00
parent 3870ced635
commit bf987d867c
8 changed files with 370 additions and 273 deletions

13
src/types/tanstack-query.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
import "@tanstack/react-query";
import type { AxiosInstance } from "axios";
interface Meta extends Record<string, unknown> {
api: AxiosInstance;
}
declare module "@tanstack/react-query" {
interface Register {
queryMeta: Meta;
mutationMeta: Meta;
}
}