mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
fix: fix ts error for BubbleMenu and FloatingMenu in @tiptap/react (#5126)
This commit is contained in:
parent
152c7cb8ae
commit
baff4af39e
@ -5,7 +5,8 @@ import { useCurrentEditor } from './Context.js'
|
||||
|
||||
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
||||
|
||||
export type BubbleMenuProps = Omit<Optional<BubbleMenuPluginProps, 'pluginKey' | 'editor'>, 'element'> & {
|
||||
export type BubbleMenuProps = Omit<Optional<BubbleMenuPluginProps, 'pluginKey'>, 'element' | 'editor'> & {
|
||||
editor: BubbleMenuPluginProps['editor'] | null;
|
||||
className?: string;
|
||||
children: React.ReactNode;
|
||||
updateDelay?: number;
|
||||
|
@ -7,7 +7,8 @@ import { useCurrentEditor } from './Context.js'
|
||||
|
||||
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>
|
||||
|
||||
export type FloatingMenuProps = Omit<Optional<FloatingMenuPluginProps, 'pluginKey' | 'editor'>, 'element'> & {
|
||||
export type FloatingMenuProps = Omit<Optional<FloatingMenuPluginProps, 'pluginKey'>, 'element' | 'editor'> & {
|
||||
editor: FloatingMenuPluginProps['editor'] | null;
|
||||
className?: string,
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user