fix: fix types for BubbleMenu and FloatingMenu props
This commit is contained in:
@@ -30,7 +30,7 @@ export const BubbleMenu = defineComponent({
|
||||
},
|
||||
|
||||
shouldShow: {
|
||||
type: Function as PropType<Exclude<BubbleMenuPluginProps['shouldShow'], null>>,
|
||||
type: Function as PropType<Exclude<Required<BubbleMenuPluginProps>['shouldShow'], null>>,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -30,7 +30,7 @@ export const FloatingMenu = defineComponent({
|
||||
},
|
||||
|
||||
shouldShow: {
|
||||
type: Function as PropType<Exclude<FloatingMenuPluginProps['shouldShow'], null>>,
|
||||
type: Function as PropType<Exclude<Required<FloatingMenuPluginProps>['shouldShow'], null>>,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user