propro-common-components 0.1.269 → 0.1.272

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,11 @@ import { QueryKey, UseMutationOptions, UseMutationResult } from '@tanstack/react
2
2
  import { AxiosError, AxiosRequestConfig } from 'axios';
3
3
  import { ToastOptions } from 'react-toastify';
4
4
 
5
+ declare global {
6
+ interface Window {
7
+ __TAURI_IPC__?: unknown;
8
+ }
9
+ }
5
10
  declare const useMutate: <TData = unknown, TError = AxiosError<unknown, any>, TVariables = unknown, TContext = unknown>({ url, method, headers, data, invalidateAllQueries, successLog, errorLog, logURL, toastMessage, onSuccess, onError, }: {
6
11
  url: string | ((variables: TVariables) => string);
7
12
  method: 'POST' | 'PUT' | 'DELETE' | 'PATCH';