From 5e2b8db3a196f2ebd413c5f43a433e187255cf19 Mon Sep 17 00:00:00 2001 From: Shuhei Aoyama Date: Sun, 14 Jun 2020 09:22:26 +0900 Subject: [PATCH] fix(type): Fix global method parameter type (#585) --- react-tooltip.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-tooltip.d.ts b/react-tooltip.d.ts index c77c58df..a1651a6c 100644 --- a/react-tooltip.d.ts +++ b/react-tooltip.d.ts @@ -109,7 +109,7 @@ export interface TooltipProps { // ReactTooltip component is the default export export default class ReactTooltip extends React.Component { // static methods - static show: (target: string) => {}; - static hide: (target?: string) => {}; + static show: (target: Element) => {}; + static hide: (target?: Element) => {}; static rebuild: () => {}; }