File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ type BaseTooltipProps =
39
39
* If true, wrap with tippy irrespective of other options
40
40
* @default true
41
41
*/
42
- alwaysShowTippyOnHover ? : boolean
42
+ alwaysShowTippyOnHover : boolean
43
43
/**
44
44
* If true, use the common styling for shortcuts
45
45
* @default undefined
@@ -62,7 +62,7 @@ type BaseTooltipProps =
62
62
* If true, use the common styling for shortcuts
63
63
* @default undefined
64
64
*/
65
- shortcutKeyCombo ? : {
65
+ shortcutKeyCombo : {
66
66
text : string
67
67
combo : SupportedKeyboardKeysType [ ]
68
68
}
Original file line number Diff line number Diff line change @@ -97,7 +97,8 @@ export type ButtonProps = (
97
97
// TODO: using some typing somersaults here, clean it up later
98
98
tooltipProps :
99
99
| Omit < TooltipProps , 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo' >
100
- | Omit < TooltipProps , 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content' >
100
+ | ( Omit < TooltipProps , 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content' > &
101
+ Required < Pick < TooltipProps , 'shortcutKeyCombo' > > )
101
102
}
102
103
| {
103
104
showTooltip ?: never
You can’t perform that action at this time.
0 commit comments