mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Update react-redux-toastr.d.ts
This commit is contained in:
committed by
GitHub
parent
42e0076772
commit
be207d84a7
+11
-11
@@ -48,13 +48,13 @@ declare module "react-redux-toastr" {
|
||||
removeOnHover?: boolean,
|
||||
removeOnClick?: boolean,
|
||||
component?: R.Component<any, any>,
|
||||
onShowComplete?: () => void,
|
||||
onHideComplete?: () => void
|
||||
onShowComplete?: (): void;
|
||||
onHideComplete?: (): void;
|
||||
}
|
||||
|
||||
interface ToastrConfirmOptions {
|
||||
onOk: () => void,
|
||||
onCancel: () => void
|
||||
onOk: (): void;
|
||||
onCancel: (): void;
|
||||
}
|
||||
|
||||
interface ToastrEmitter {
|
||||
@@ -62,19 +62,19 @@ declare module "react-redux-toastr" {
|
||||
* Used to provide a large amount of information.
|
||||
* It will not close unless a timeOut is provided.
|
||||
*/
|
||||
message: (title: string, message: string, options?: EmitterOptions) => void,
|
||||
info: (title: string, message: string, options?: EmitterOptions) => void,
|
||||
success: (title: string, message: string, options?: EmitterOptions) => void,
|
||||
warning: (title: string, message: string, options?: EmitterOptions) => void,
|
||||
error: (title: string, message: string, options?: EmitterOptions) => void,
|
||||
message: (title: string, message: string, options?: EmitterOptions): void;
|
||||
info: (title: string, message: string, options?: EmitterOptions): void;
|
||||
success: (title: string, message: string, options?: EmitterOptions): void;
|
||||
warning: (title: string, message: string, options?: EmitterOptions): void;
|
||||
error: (title: string, message: string, options?: EmitterOptions): void;
|
||||
/**
|
||||
* Clear all notifications
|
||||
*/
|
||||
clean: () => void,
|
||||
clean: (): void;
|
||||
/**
|
||||
* Hook confirmation toastr with callback.
|
||||
*/
|
||||
confirm: (message: string, options: ToastrConfirmOptions) => any
|
||||
confirm: (message: string, options: ToastrConfirmOptions): void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user