Skip to content

Commit

Permalink
fix(tooltip): position callback return type. close #15030
Browse files Browse the repository at this point in the history
  • Loading branch information
congjiujiu committed May 25, 2021
1 parent b53aa13 commit ea25e07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/component/tooltip/TooltipView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class TooltipView extends ComponentView {

private _tooltipContent: TooltipHTMLContent | TooltipRichContent;

private _refreshUpdateTimeout: number;
private _refreshUpdateTimeout: ReturnType<typeof setTimeout>;

private _lastX: number;
private _lastY: number;
Expand Down
2 changes: 1 addition & 1 deletion src/util/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ export interface TooltipPositionCallback {
*/
viewSize: [number, number]
}
): number[] | string[] | TooltipBuiltinPosition | TooltipBoxLayoutOption
): Array<number | string> | TooltipBuiltinPosition | TooltipBoxLayoutOption
}
/**
* Common tooltip option
Expand Down

0 comments on commit ea25e07

Please sign in to comment.