Skip to content

Commit 53a26b1

Browse files
committed
Export useMutationWithMutationMode
1 parent 916e89c commit 53a26b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/ra-core/src/dataProvider/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export * from './useDelete';
2626
export * from './useDeleteMany';
2727
export * from './useInfiniteGetList';
2828
export * from './undo/';
29+
export * from './useMutationWithMutationMode';
2930

3031
export type { Options } from './fetch';
3132

packages/ra-core/src/dataProvider/useMutationWithMutationMode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ type DataProviderMutationWithMiddlewareFunction<
360360
TVariables = unknown,
361361
> = (params: Partial<TVariables>, options?: any) => Promise<TData>;
362362

363-
export type UpdateMutationFunction<
363+
export type MutationFunctionWithOptions<
364364
TReturnPromise extends boolean = boolean,
365365
ErrorType = Error,
366366
TData = unknown,
@@ -379,7 +379,7 @@ export type UseMutationWithMutationModeResult<
379379
TData = unknown,
380380
TVariables = unknown,
381381
> = [
382-
UpdateMutationFunction<TReturnPromise, ErrorType, TData, TVariables>,
382+
MutationFunctionWithOptions<TReturnPromise, ErrorType, TData, TVariables>,
383383
UseMutationResult<TData, ErrorType, Partial<TVariables>, unknown> & {
384384
isLoading: boolean;
385385
},

0 commit comments

Comments
 (0)