DefinitelyTyped/types/react-toastify/react-toastify-tests.ts
Ian Copp 3c57d52a15 Add react-toastify (#25320)
* Add react-toastify

* Correct Typescript version reference
2018-04-26 15:39:12 -07:00

10 lines
208 B
TypeScript

import { toast } from 'react-toastify';
const someToastId = toast('Testing!'); // $ExpectType string
// $ExpectType void
toast.update(someToastId, {
render: "New Content",
type: toast.TYPE.INFO
});