mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-07 01:39:07 +00:00
Merge pull request #18672 from vincaslt/master
Add removeAll() definition to react-notification-system-redux
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-notification-system-redux 1.0
|
||||
// Type definitions for react-notification-system-redux 1.1
|
||||
// Project: https://github.com/gor181/react-notification-system-redux
|
||||
// Definitions by: Karol Janyst <https://github.com/LKay>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -35,4 +35,5 @@ declare namespace Notifications {
|
||||
const info: NotificationShow;
|
||||
const success: NotificationShow;
|
||||
const warning: NotificationShow;
|
||||
function removeAll(): Action;
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
"dependencies": {
|
||||
"redux": "^3.6.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as React from "react";
|
||||
import { createStore, Store } from "redux";
|
||||
import { Notification } from "react-notification-system";
|
||||
import * as Notifications from "react-notification-system-redux";
|
||||
import { reducer, show, hide, info, error, warning, success, NotificationLevel } from "react-notification-system-redux";
|
||||
import { reducer, removeAll, show, hide, info, error, warning, success, NotificationLevel } from "react-notification-system-redux";
|
||||
|
||||
class Test extends React.Component {
|
||||
private test() {
|
||||
@@ -20,6 +20,7 @@ class Test extends React.Component {
|
||||
hide(notification);
|
||||
hide("uid");
|
||||
hide(123);
|
||||
removeAll();
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user