[react-notification-system] added missing clearNotifications() v0.2.11

This commit is contained in:
sweetkat
2017-02-10 15:50:53 +10:00
committed by Kate Shum
parent 59fe5cd98a
commit f08afcf32b

View File

@@ -1,4 +1,4 @@
// Type definitions for React Notification System v0.2.10
// Type definitions for React Notification System v0.2.11
// Project: https://www.npmjs.com/package/react-notification-system
// Definitions by: Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>, Deividas Bakanas <https://github.com/DeividasBakanas>, Karol Janyst <https://github.com/LKay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -12,6 +12,7 @@ declare namespace NotificationSystem {
addNotification(notification: Notification): Notification;
removeNotification(notification: Notification): void;
removeNotification(uid: number | string): void;
clearNotifications(): void;
}
export type CallBackFunction = (notification: Notification) => void;