3.0.10 • Published 4 months ago
@types/react-toastr v3.0.10
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.