mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Note that this *trivially* updates project urls by adding the NPM url to the end, even when the urls are almost identical or the DT one is outdated. I'll clean up the urls in a later commit. This PR is unfinished! Please do not merge it yet.
21 lines
997 B
TypeScript
21 lines
997 B
TypeScript
// 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;
|
|
}> {
|
|
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;
|