File tree Expand file tree Collapse file tree 5 files changed +20
-35
lines changed
packages/ra-core/src/dataProvider Expand file tree Collapse file tree 5 files changed +20
-35
lines changed Original file line number Diff line number Diff line change @@ -258,13 +258,10 @@ export type UseCreateOptions<
258258 RecordType extends Omit < RaRecord , 'id' > = any ,
259259 MutationError = unknown ,
260260 ResultRecordType extends RaRecord = RecordType & { id : Identifier } ,
261- > = Omit <
262- UseMutationOptions <
263- ResultRecordType ,
264- MutationError ,
265- Partial < UseCreateMutateParams < RecordType > >
266- > ,
267- 'mutationFn'
261+ > = UseMutationOptions <
262+ ResultRecordType ,
263+ MutationError ,
264+ Partial < UseCreateMutateParams < RecordType > >
268265> & {
269266 mutationMode ?: MutationMode ;
270267 returnPromise ?: boolean ;
Original file line number Diff line number Diff line change @@ -272,13 +272,10 @@ export interface UseDeleteMutateParams<RecordType extends RaRecord = any> {
272272export type UseDeleteOptions <
273273 RecordType extends RaRecord = any ,
274274 MutationError = unknown ,
275- > = Omit <
276- UseMutationOptions <
277- RecordType ,
278- MutationError ,
279- Partial < UseDeleteMutateParams < RecordType > >
280- > ,
281- 'mutationFn'
275+ > = UseMutationOptions <
276+ RecordType ,
277+ MutationError ,
278+ Partial < UseDeleteMutateParams < RecordType > >
282279> & {
283280 mutationMode ?: MutationMode ;
284281 returnPromise ?: boolean ;
Original file line number Diff line number Diff line change @@ -298,13 +298,10 @@ export type UseDeleteManyOptions<
298298 RecordType extends RaRecord = any ,
299299 MutationError = unknown ,
300300 TReturnPromise extends boolean = boolean ,
301- > = Omit <
302- UseMutationOptions <
303- Array < RecordType [ 'id' ] > | undefined ,
304- MutationError ,
305- Partial < UseDeleteManyMutateParams < RecordType > >
306- > ,
307- 'mutationFn'
301+ > = UseMutationOptions <
302+ Array < RecordType [ 'id' ] > | undefined ,
303+ MutationError ,
304+ Partial < UseDeleteManyMutateParams < RecordType > >
308305> & { mutationMode ?: MutationMode ; returnPromise ?: TReturnPromise } ;
309306
310307export type UseDeleteManyResult <
Original file line number Diff line number Diff line change @@ -305,13 +305,10 @@ export interface UseUpdateMutateParams<RecordType extends RaRecord = any> {
305305export type UseUpdateOptions <
306306 RecordType extends RaRecord = any ,
307307 ErrorType = Error ,
308- > = Omit <
309- UseMutationOptions <
310- RecordType ,
311- ErrorType ,
312- Partial < UseUpdateMutateParams < RecordType > >
313- > ,
314- 'mutationFn'
308+ > = UseMutationOptions <
309+ RecordType ,
310+ ErrorType ,
311+ Partial < UseUpdateMutateParams < RecordType > >
315312> & {
316313 mutationMode ?: MutationMode ;
317314 returnPromise ?: boolean ;
Original file line number Diff line number Diff line change @@ -287,13 +287,10 @@ export interface UseUpdateManyMutateParams<RecordType extends RaRecord = any> {
287287export type UseUpdateManyOptions <
288288 RecordType extends RaRecord = any ,
289289 MutationError = unknown ,
290- > = Omit <
291- UseMutationOptions <
292- Array < RecordType [ 'id' ] > ,
293- MutationError ,
294- Partial < UseUpdateManyMutateParams < RecordType > >
295- > ,
296- 'mutationFn'
290+ > = UseMutationOptions <
291+ Array < RecordType [ 'id' ] > ,
292+ MutationError ,
293+ Partial < UseUpdateManyMutateParams < RecordType > >
297294> & {
298295 mutationMode ?: MutationMode ;
299296 returnPromise ?: boolean ;
You can’t perform that action at this time.
0 commit comments