File tree Expand file tree Collapse file tree 4 files changed +28
-16
lines changed
packages/ra-core/src/dataProvider Expand file tree Collapse file tree 4 files changed +28
-16
lines changed Original file line number Diff line number Diff line change @@ -279,10 +279,13 @@ export interface UseDeleteMutateParams<RecordType extends RaRecord = any> {
279279export type UseDeleteOptions <
280280 RecordType extends RaRecord = any ,
281281 MutationError = unknown ,
282- > = UseMutationOptions <
283- RecordType ,
284- MutationError ,
285- Partial < Omit < UseDeleteMutateParams < RecordType > , 'mutationFn' > >
282+ > = Omit <
283+ UseMutationOptions <
284+ RecordType ,
285+ MutationError ,
286+ Partial < UseDeleteMutateParams < RecordType > >
287+ > ,
288+ 'mutationFn'
286289> & {
287290 mutationMode ?: MutationMode ;
288291 returnPromise ?: boolean ;
Original file line number Diff line number Diff line change @@ -307,10 +307,13 @@ export type UseDeleteManyOptions<
307307 RecordType extends RaRecord = any ,
308308 MutationError = unknown ,
309309 TReturnPromise extends boolean = boolean ,
310- > = UseMutationOptions <
311- Array < RecordType [ 'id' ] > | undefined ,
312- MutationError ,
313- Partial < UseDeleteManyMutateParams < RecordType > >
310+ > = Omit <
311+ UseMutationOptions <
312+ Array < RecordType [ 'id' ] > | undefined ,
313+ MutationError ,
314+ Partial < UseDeleteManyMutateParams < RecordType > >
315+ > ,
316+ 'mutationFn'
314317> & { mutationMode ?: MutationMode ; returnPromise ?: TReturnPromise } ;
315318
316319export type UseDeleteManyResult <
Original file line number Diff line number Diff line change @@ -318,10 +318,13 @@ export interface UseUpdateMutateParams<RecordType extends RaRecord = any> {
318318export type UseUpdateOptions <
319319 RecordType extends RaRecord = any ,
320320 ErrorType = Error ,
321- > = UseMutationOptions <
322- RecordType ,
323- ErrorType ,
324- Partial < Omit < UseUpdateMutateParams < RecordType > , 'mutationFn' > >
321+ > = Omit <
322+ UseMutationOptions <
323+ RecordType ,
324+ ErrorType ,
325+ Partial < UseUpdateMutateParams < RecordType > >
326+ > ,
327+ 'mutationFn'
325328> & {
326329 mutationMode ?: MutationMode ;
327330 returnPromise ?: boolean ;
Original file line number Diff line number Diff line change @@ -303,10 +303,13 @@ export interface UseUpdateManyMutateParams<RecordType extends RaRecord = any> {
303303export type UseUpdateManyOptions <
304304 RecordType extends RaRecord = any ,
305305 MutationError = unknown ,
306- > = UseMutationOptions <
307- Array < RecordType [ 'id' ] > ,
308- MutationError ,
309- Partial < Omit < UseUpdateManyMutateParams < RecordType > , 'mutationFn' > >
306+ > = Omit <
307+ UseMutationOptions <
308+ Array < RecordType [ 'id' ] > ,
309+ MutationError ,
310+ Partial < UseUpdateManyMutateParams < RecordType > >
311+ > ,
312+ 'mutationFn'
310313> & {
311314 mutationMode ?: MutationMode ;
312315 returnPromise ?: boolean ;
You can’t perform that action at this time.
0 commit comments