Skip to content

Commit

Permalink
fix(types): add notification render method arguments (#4117)
Browse files Browse the repository at this point in the history
Fix `render` method type
  • Loading branch information
jmarceli authored Dec 28, 2022
1 parent d15feb7 commit 2d17f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/notification/notification.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export namespace Notification {
/** Element to mount notifications to. (default app.el) */
containerEl?: HTMLElement | CSSSelector;
/** Custom function to render Notification. Must return notification html. */
render?: () => string;
render?: (notification: Notification) => string;
/** Object with events handlers.. */
on?: {
[event in keyof Events]?: Events[event];
Expand Down

0 comments on commit 2d17f7a

Please sign in to comment.