diff --git a/react-notification-system/react-notification-system.d.ts b/react-notification-system/react-notification-system.d.ts index 52a5d7d988..04e6313a23 100644 --- a/react-notification-system/react-notification-system.d.ts +++ b/react-notification-system/react-notification-system.d.ts @@ -10,8 +10,8 @@ declare module NotificationSystem { import React = __React; export interface System extends React.Component { - addNotification(notification: Notification): Notification; - removeNotification(notification: Notification): void; + addNotification(notification: Notification): Notification; + removeNotification(notification: Notification): void; removeNotification(uid: string): void; } @@ -34,7 +34,7 @@ declare module NotificationSystem { export interface ActionObject { label: string; - callback?: Function; + callback?: () => void; } export interface ContainersStyle { @@ -75,7 +75,7 @@ declare module NotificationSystem { ref?: string; style?: Style | boolean; } - + export interface Component { (): React.ReactElement;