mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
[react-notification-system] added missing clearNotifications() v0.2.11
This commit is contained in:
3
react-notification-system/index.d.ts
vendored
3
react-notification-system/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user