Merge pull request #17624 from artyomsv/react-redux-toastr-props

[react-redux-toastr] Add missing properties for ToastrOptions
This commit is contained in:
Paul van Brenk
2017-06-29 13:23:21 -07:00
committed by GitHub

View File

@@ -1,6 +1,7 @@
// Type definitions for react-redux-toastr 3.7.0
// Project: https://github.com/diegoddox/react-redux-toastr
// Definitions by: Aleksandar Ivanov <https://github.com/Smiche>
// Artyom Stukans <https://github.com/artyomsv>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -21,10 +22,14 @@ declare module "react-redux-toastr" {
* Position of the toastr: top-left, top-center, top-right, bottom-left, bottom-center and bottom-right
*/
position?: string,
confirmText?: ConfirmText
confirmOptions?: ConfirmOptions,
preventDuplicates?: boolean,
transitionIn?: 'bounceIn' | 'bounceInDown' | 'fadeIn',
transitionOut?: 'bounceOut' | 'bounceOutUp' | 'fadeOut',
progressBar?: boolean,
}
interface ConfirmText {
interface ConfirmOptions {
okText: string,
cancelText: string
}