DefinitelyTyped/types/react-toastr/index.d.ts
Nathan Shively-Sanders f0ce987bc1 Update project urls to match NPM url
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.
2019-02-11 17:10:55 -08:00

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;