[React-notify-toast] Add options typings (#29834)

* Add options typings

* fix option typings

* Fix semicolon
This commit is contained in:
Hiroaki Sasaki
2018-10-18 08:57:16 -07:00
committed by Sheetal Nandi
parent 110a81945a
commit 724810601f
+10 -1
View File
@@ -23,8 +23,17 @@ declare class reactNotifyToast {
createShowQueue(): reactNotifyToast;
}
interface Options {
wrapperId?: string;
animationDuration?: number;
timeout?: number;
zIndex?: number;
top?: number | string;
colors?: any;
}
interface NotificationProps {
options: any;
options?: Options;
}
export class Notification extends React.Component<NotificationProps, any> {}