diff --git a/.changeset/blue-dingos-heal.md b/.changeset/blue-dingos-heal.md new file mode 100644 index 000000000000..38cc609799e4 --- /dev/null +++ b/.changeset/blue-dingos-heal.md @@ -0,0 +1,7 @@ +--- +"@refinedev/core": patch +--- + +fix: added undefined type to `successNotification` and `errorNotification` #6270 + +Resolves #6270 diff --git a/packages/core/src/contexts/notification/types.ts b/packages/core/src/contexts/notification/types.ts index 7667d33fbb27..ec2a7e5926d5 100644 --- a/packages/core/src/contexts/notification/types.ts +++ b/packages/core/src/contexts/notification/types.ts @@ -11,6 +11,7 @@ export type SuccessErrorNotification< successNotification?: | OpenNotificationParams | false + | undefined | (( data?: TData, values?: TVariables, @@ -23,6 +24,7 @@ export type SuccessErrorNotification< errorNotification?: | OpenNotificationParams | false + | undefined | (( error?: TError, values?: TVariables,