Skip to content

Commit 2d17f7a

Browse files
authored
fix(types): add notification render method arguments (#4117)
Fix `render` method type
1 parent d15feb7 commit 2d17f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/notification/notification.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export namespace Notification {
4848
/** Element to mount notifications to. (default app.el) */
4949
containerEl?: HTMLElement | CSSSelector;
5050
/** Custom function to render Notification. Must return notification html. */
51-
render?: () => string;
51+
render?: (notification: Notification) => string;
5252
/** Object with events handlers.. */
5353
on?: {
5454
[event in keyof Events]?: Events[event];

0 commit comments

Comments
 (0)