From 724810601f1128f3b7d7d0e5ede158ea728ffb2e Mon Sep 17 00:00:00 2001 From: Hiroaki Sasaki Date: Fri, 19 Oct 2018 00:57:16 +0900 Subject: [PATCH] [React-notify-toast] Add options typings (#29834) * Add options typings * fix option typings * Fix semicolon --- types/react-notify-toast/index.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/types/react-notify-toast/index.d.ts b/types/react-notify-toast/index.d.ts index 1feb26ef61..ff4e52c616 100644 --- a/types/react-notify-toast/index.d.ts +++ b/types/react-notify-toast/index.d.ts @@ -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 {}