Skip to content

Commit

Permalink
fix: added undefined type
Browse files Browse the repository at this point in the history
Added undefined type to errorNotification and successNotification.
  • Loading branch information
Anonymous961 committed Sep 12, 2024
1 parent 9b3ecc4 commit 5a87542
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/blue-dingos-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@refinedev/core": patch
---

fix: added undefined type to `successNotification` and `errorNotification` #6270

Resolves #6270
2 changes: 2 additions & 0 deletions packages/core/src/contexts/notification/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type SuccessErrorNotification<
successNotification?:
| OpenNotificationParams
| false
| undefined
| ((
data?: TData,
values?: TVariables,
Expand All @@ -23,6 +24,7 @@ export type SuccessErrorNotification<
errorNotification?:
| OpenNotificationParams
| false
| undefined
| ((
error?: TError,
values?: TVariables,
Expand Down

0 comments on commit 5a87542

Please sign in to comment.