// Type definitions for react-notify-toast 0.5 // Project: https://github.com/jesusoterogomez/react-notify-toast // Definitions by: Klaas Cuvelier // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; interface reactNotifyToastColor { background: string; text: string; } declare class reactNotifyToast { show( text: string, type?: 'success' | 'error' | 'warning' | 'custom', timeout?: number, color?: reactNotifyToastColor ): void; hide(): void; createShowQueue(): reactNotifyToast; } interface Options { wrapperId?: string; animationDuration?: number; timeout?: number; zIndex?: number; top?: number | string; colors?: any; } interface NotificationProps { options?: Options; } export class Notification extends React.Component {} export const notify: reactNotifyToast; export default Notification;