Skip to content

Commit

Permalink
fix: fix types for BubbleMenu and FloatingMenu props
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Aug 23, 2021
1 parent 839acc1 commit d3242c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vue-3/src/BubbleMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-3/src/FloatingMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand Down

0 comments on commit d3242c9

Please sign in to comment.