fix: fix types for BubbleMenu and FloatingMenu props

This commit is contained in:
Philipp Kühn
2021-08-23 22:21:18 +02:00
parent 839acc1d9f
commit d3242c9a07
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ export const BubbleMenu = defineComponent({
}, },
shouldShow: { shouldShow: {
type: Function as PropType<Exclude<BubbleMenuPluginProps['shouldShow'], null>>, type: Function as PropType<Exclude<Required<BubbleMenuPluginProps>['shouldShow'], null>>,
default: null, default: null,
}, },
}, },

View File

@@ -30,7 +30,7 @@ export const FloatingMenu = defineComponent({
}, },
shouldShow: { shouldShow: {
type: Function as PropType<Exclude<FloatingMenuPluginProps['shouldShow'], null>>, type: Function as PropType<Exclude<Required<FloatingMenuPluginProps>['shouldShow'], null>>,
default: null, default: null,
}, },
}, },