From 847d5d0ea9c19d11d091057516189376772b238b Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Wed, 17 Oct 2018 15:36:00 +0200 Subject: [PATCH] fix: types --- src/core/client/ui/components/BaseButton/BaseButton.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/client/ui/components/BaseButton/BaseButton.tsx b/src/core/client/ui/components/BaseButton/BaseButton.tsx index 8dfa8575b..fd349182b 100644 --- a/src/core/client/ui/components/BaseButton/BaseButton.tsx +++ b/src/core/client/ui/components/BaseButton/BaseButton.tsx @@ -1,5 +1,5 @@ import cn from "classnames"; -import React, { Ref } from "react"; +import React, { EventHandler, FocusEvent, MouseEvent, Ref } from "react"; import { ButtonHTMLAttributes, StatelessComponent } from "react"; import { @@ -25,7 +25,7 @@ interface InnerProps extends ButtonHTMLAttributes { classes: typeof styles; /** This is passed by the `withKeyboardFocus` HOC */ - keyboardFocus?: boolean; + keyboardFocus: boolean; /** This is passed by the `withMouseHover` HOC */ mouseHover?: boolean; @@ -34,6 +34,10 @@ interface InnerProps extends ButtonHTMLAttributes { forwardRef?: Ref; type?: "submit" | "reset" | "button"; + + onFocus: EventHandler>; + onBlur: EventHandler>; + onMouseDown: EventHandler>; } /**