From c011c1ac54c786ccbbf2fe8f306bb0b32ee451f2 Mon Sep 17 00:00:00 2001 From: chancestrickland Date: Tue, 5 Nov 2019 16:45:22 -0800 Subject: [PATCH] tooltip: add DEBUG_STYLE to typescript defs (#345) --- packages/tooltip/index.d.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/tooltip/index.d.ts b/packages/tooltip/index.d.ts index d466ceca9..5bebe2870 100644 --- a/packages/tooltip/index.d.ts +++ b/packages/tooltip/index.d.ts @@ -28,8 +28,11 @@ export interface TooltipParams { isVisible: boolean; } -export function useTooltip( - attrs?: React.HTMLProps +export function useTooltip( + attrs?: { + ref: React.Ref; + DEBUG_STYLE?: boolean; + } & React.HTMLProps ): [TriggerParams, TooltipParams, boolean]; export type BaseTooltipProps = { @@ -40,6 +43,7 @@ export type BaseTooltipProps = { export type TooltipProps = { children: React.ReactNode; + DEBUG_STYLE?: boolean; } & BaseTooltipProps; export type TooltipPopupProps = {