mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 04:00:33 +08:00
Merge pull request #17624 from artyomsv/react-redux-toastr-props
[react-redux-toastr] Add missing properties for ToastrOptions
This commit is contained in:
9
types/react-redux-toastr/index.d.ts
vendored
9
types/react-redux-toastr/index.d.ts
vendored
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user