mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-04 09:03:48 +00:00
🚧 WIP
This commit is contained in:
13
src/types/tanstack-query.d.ts
vendored
Normal file
13
src/types/tanstack-query.d.ts
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user