mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 10:23:33 +00:00
Add generic query/mutation types
This commit is contained in:
parent
8f042ad448
commit
17cf624f6a
3 changed files with 123 additions and 175 deletions
|
|
@ -36,6 +36,16 @@ export const queryClient = new QueryClient({
|
|||
queryCache,
|
||||
});
|
||||
|
||||
export type QueryHookArgs<T> = {
|
||||
options?: QueryOptions;
|
||||
query: T;
|
||||
serverId?: string;
|
||||
};
|
||||
|
||||
export type MutationHookArgs = {
|
||||
options?: MutationOptions;
|
||||
};
|
||||
|
||||
export type QueryOptions = {
|
||||
cacheTime?: UseQueryOptions['cacheTime'];
|
||||
enabled?: UseQueryOptions['enabled'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue