fix a type bug for now

This commit is contained in:
Philipp Kühn
2021-09-06 22:54:59 +02:00
parent 8d15436c28
commit 7fefd4c488
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ export const BubbleMenu = defineComponent({
pluginKey: { pluginKey: {
// TODO: TypeScript breaks :( // TODO: TypeScript breaks :(
// type: [String, Object as PropType<Exclude<BubbleMenuPluginProps['pluginKey'], string>>], // type: [String, Object as PropType<Exclude<BubbleMenuPluginProps['pluginKey'], string>>],
type: [String, Object], type: null,
default: 'bubbleMenu', default: 'bubbleMenu',
}, },

View File

@@ -15,7 +15,7 @@ export const FloatingMenu = defineComponent({
pluginKey: { pluginKey: {
// TODO: TypeScript breaks :( // TODO: TypeScript breaks :(
// type: [String, Object as PropType<Exclude<FloatingMenuPluginProps['pluginKey'], string>>], // type: [String, Object as PropType<Exclude<FloatingMenuPluginProps['pluginKey'], string>>],
type: [String, Object], type: null,
default: 'floatingMenu', default: 'floatingMenu',
}, },