Skip to content

Commit

Permalink
Fix type for BubbleMenu prop pluginKey (#3678)
Browse files Browse the repository at this point in the history
  • Loading branch information
rumbcam authored Feb 18, 2023
1 parent 4cd35d4 commit d8967a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vue-3/src/BubbleMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export const BubbleMenu = defineComponent({

props: {
pluginKey: {
// TODO: TypeScript breaks :(
// type: [String, Object as PropType<Exclude<BubbleMenuPluginProps['pluginKey'], string>>],
type: null,
type: [String, Object] as PropType<BubbleMenuPluginProps['pluginKey']>,
default: 'bubbleMenu',
},

Expand Down

0 comments on commit d8967a7

Please sign in to comment.