Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions packages/ra-core/src/dataProvider/useCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,10 @@ export type UseCreateOptions<
RecordType extends Omit<RaRecord, 'id'> = any,
MutationError = unknown,
ResultRecordType extends RaRecord = RecordType & { id: Identifier },
> = Omit<
UseMutationOptions<
ResultRecordType,
MutationError,
Partial<UseCreateMutateParams<RecordType>>
>,
'mutationFn'
> = UseMutationOptions<
ResultRecordType,
MutationError,
Partial<UseCreateMutateParams<RecordType>>
> & {
mutationMode?: MutationMode;
returnPromise?: boolean;
Expand Down
11 changes: 4 additions & 7 deletions packages/ra-core/src/dataProvider/useDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,10 @@ export interface UseDeleteMutateParams<RecordType extends RaRecord = any> {
export type UseDeleteOptions<
RecordType extends RaRecord = any,
MutationError = unknown,
> = Omit<
UseMutationOptions<
RecordType,
MutationError,
Partial<UseDeleteMutateParams<RecordType>>
>,
'mutationFn'
> = UseMutationOptions<
RecordType,
MutationError,
Partial<UseDeleteMutateParams<RecordType>>
> & {
mutationMode?: MutationMode;
returnPromise?: boolean;
Expand Down
11 changes: 4 additions & 7 deletions packages/ra-core/src/dataProvider/useDeleteMany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,10 @@ export type UseDeleteManyOptions<
RecordType extends RaRecord = any,
MutationError = unknown,
TReturnPromise extends boolean = boolean,
> = Omit<
UseMutationOptions<
Array<RecordType['id']> | undefined,
MutationError,
Partial<UseDeleteManyMutateParams<RecordType>>
>,
'mutationFn'
> = UseMutationOptions<
Array<RecordType['id']> | undefined,
MutationError,
Partial<UseDeleteManyMutateParams<RecordType>>
> & { mutationMode?: MutationMode; returnPromise?: TReturnPromise };

export type UseDeleteManyResult<
Expand Down
11 changes: 4 additions & 7 deletions packages/ra-core/src/dataProvider/useUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,10 @@ export interface UseUpdateMutateParams<RecordType extends RaRecord = any> {
export type UseUpdateOptions<
RecordType extends RaRecord = any,
ErrorType = Error,
> = Omit<
UseMutationOptions<
RecordType,
ErrorType,
Partial<UseUpdateMutateParams<RecordType>>
>,
'mutationFn'
> = UseMutationOptions<
RecordType,
ErrorType,
Partial<UseUpdateMutateParams<RecordType>>
> & {
mutationMode?: MutationMode;
returnPromise?: boolean;
Expand Down
11 changes: 4 additions & 7 deletions packages/ra-core/src/dataProvider/useUpdateMany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,10 @@ export interface UseUpdateManyMutateParams<RecordType extends RaRecord = any> {
export type UseUpdateManyOptions<
RecordType extends RaRecord = any,
MutationError = unknown,
> = Omit<
UseMutationOptions<
Array<RecordType['id']>,
MutationError,
Partial<UseUpdateManyMutateParams<RecordType>>
>,
'mutationFn'
> = UseMutationOptions<
Array<RecordType['id']>,
MutationError,
Partial<UseUpdateManyMutateParams<RecordType>>
> & {
mutationMode?: MutationMode;
returnPromise?: boolean;
Expand Down
Loading