Neatly Packaged Modules

    @types/react-toastr
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.5 • Public • Published

    Installation

    npm install --save @types/react-toastr

    Summary

    This package contains type definitions for react-toastr (https://github.com/tomchentw/react-toastr).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-toastr.

    index.d.ts

    // Type definitions for react-toastr 3.0
    // Project: https://github.com/tomchentw/react-toastr, https://tomchentw.github.io/react-toastr
    // Definitions by: Josh Holmer <https://github.com/shssoichiro>, Dan Regazzi <https://github.com/DanRegazzi>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    import { Component, ReactHTML } from 'react';
    
    export class ToastContainer extends Component<{
        toastMessageFactory: any;
        className?: string | undefined;
    }> {
        error: (message: React.ReactNode, title: React.ReactNode, optionsOverride?: {}) => void;
        info: (message: React.ReactNode, title: React.ReactNode, optionsOverride?: {}) => void;
        success: (message: React.ReactNode, title: React.ReactNode, optionsOverride?: {}) => void;
        warning: (message: React.ReactNode, title: React.ReactNode, optionsOverride?: {}) => void;
        clear: () => void;
    }
    export const ToastMessageAnimated: keyof ReactHTML;
    export const ToastMessagejQuery: keyof ReactHTML;

    Additional Details

    • Last updated: Thu, 08 Jul 2021 22:41:40 GMT
    • Dependencies: @types/react
    • Global values: none

    Credits

    These definitions were written by Josh Holmer, and Dan Regazzi.

    Keywords

    none

    Install

    npm i @types/react-toastr

    DownloadsWeekly Downloads

    1,168

    Version

    3.0.5

    License

    MIT

    Unpacked Size

    4.89 kB

    Total Files

    4

    Last publish

    Collaborators

    • types