Skip to content

Commit

Permalink
tooltip: add DEBUG_STYLE to typescript defs (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Nov 6, 2019
1 parent 4f21371 commit c011c1a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/tooltip/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ export interface TooltipParams {
isVisible: boolean;
}

export function useTooltip(
attrs?: React.HTMLProps<any>
export function useTooltip<T = any>(
attrs?: {
ref: React.Ref<T>;
DEBUG_STYLE?: boolean;
} & React.HTMLProps<T>
): [TriggerParams, TooltipParams, boolean];

export type BaseTooltipProps = {
Expand All @@ -40,6 +43,7 @@ export type BaseTooltipProps = {

export type TooltipProps = {
children: React.ReactNode;
DEBUG_STYLE?: boolean;
} & BaseTooltipProps;

export type TooltipPopupProps = {
Expand Down

0 comments on commit c011c1a

Please sign in to comment.