Add JSX Elements support (#29438)

Allow JSX Elements as added types for title/message properties of the Notification interface. This will allow custom html tags like spans and divs with more control over the notifications' appearance, as is possible in the js module.
This commit is contained in:
Adham El Banhawy
2018-10-09 20:37:44 +02:00
committed by Andy
parent da221f700f
commit 3db5b2e69e

View File

@@ -18,8 +18,8 @@ declare namespace NotificationSystem {
export type CallBackFunction = (notification: Notification) => void;
export interface Notification {
title?: string;
message?: string;
title?: string | JSX.Element;
message?: string | JSX.Element;
level?: "error" | "warning" | "info" | "success";
position?: "tr" | "tl" | "tc" | "br" | "bl" | "bc";
autoDismiss?: number;