propro-common-components 0.1.266 → 0.1.268
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/useMutate.d.ts +1 -1
- package/dist/api/useMutateTauri.d.ts +1 -1
- package/dist/backendRequests.d.ts +4 -4
- package/dist/propro-common-components.js +2809 -2778
- package/package.json +1 -1
package/dist/api/useMutate.d.ts
CHANGED
@@ -2,7 +2,7 @@ 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 const useMutate: <TData =
|
5
|
+
declare const useMutate: <TData = object | undefined, TError = AxiosError<unknown, any>, TVariables = object | undefined, TContext = unknown>({ url, method, headers, data, invalidateAllQueries, successLog, errorLog, logURL, toastMessage, onSuccess, onError, }: {
|
6
6
|
url: string | ((variables: TVariables) => string);
|
7
7
|
method: 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
8
8
|
headers?: AxiosRequestConfig['headers'];
|
@@ -2,7 +2,7 @@ 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 const useMutate: <TData =
|
5
|
+
declare const useMutate: <TData = object, TError = AxiosError<unknown, any>, TVariables = object, TContext = unknown>({ url, method, headers, data, invalidateAllQueries, successLog, errorLog, logURL, toastMessage, onSuccess, onError, }: {
|
6
6
|
url: string | ((variables: TVariables) => string);
|
7
7
|
method: 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
8
8
|
headers?: AxiosRequestConfig['headers'];
|
@@ -1,5 +1,5 @@
|
|
1
|
-
declare const useUpdateAvatar: () => import('@tanstack/react-query').UseMutationResult<
|
2
|
-
declare const useUpdateProfile: () => import('@tanstack/react-query').UseMutationResult<
|
3
|
-
declare const useChangePassword: () => import('@tanstack/react-query').UseMutationResult<
|
4
|
-
declare const useUserLogout: () => import('@tanstack/react-query').UseMutationResult<
|
1
|
+
declare const useUpdateAvatar: () => import('@tanstack/react-query').UseMutationResult<object | undefined, import('axios').AxiosError<unknown, any>, object | undefined, unknown>;
|
2
|
+
declare const useUpdateProfile: () => import('@tanstack/react-query').UseMutationResult<object | undefined, import('axios').AxiosError<unknown, any>, object | undefined, unknown>;
|
3
|
+
declare const useChangePassword: () => import('@tanstack/react-query').UseMutationResult<object | undefined, import('axios').AxiosError<unknown, any>, object | undefined, unknown>;
|
4
|
+
declare const useUserLogout: () => import('@tanstack/react-query').UseMutationResult<object | undefined, import('axios').AxiosError<unknown, any>, object | undefined, unknown>;
|
5
5
|
export { useUpdateAvatar, useUpdateProfile, useUserLogout, useChangePassword };
|