propro-common-components 0.1.315 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/useMutate.d.ts +2 -2
- package/dist/propro-common-components.js +4751 -4524
- package/package.json +4 -3
package/dist/api/useMutate.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
2
2
|
import { AxiosError, AxiosRequestConfig } from 'axios';
|
3
|
-
import {
|
3
|
+
import { ToasterProps } from 'sonner';
|
4
4
|
|
5
5
|
interface UseMutateParams<TData, TError, TVariables, _TContext> {
|
6
6
|
url: string | ((variables: TVariables) => string);
|
@@ -15,7 +15,7 @@ interface UseMutateParams<TData, TError, TVariables, _TContext> {
|
|
15
15
|
message: string;
|
16
16
|
successMessage: string;
|
17
17
|
errorMessage: string;
|
18
|
-
options?:
|
18
|
+
options?: ToasterProps;
|
19
19
|
};
|
20
20
|
onSuccess?: (res: TData, variables?: TVariables) => void;
|
21
21
|
onError?: (err: TError, variables?: TVariables) => void;
|