This commit is contained in:
Philipp Kühn 2021-01-13 10:17:47 +01:00
parent 21b2d422fb
commit 2608294d04
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ export type NodeViewRendererProps = {
extension: Node,
}
export type NodeViewRenderer = (props: NodeViewRendererProps) => (NodeView | undefined)
export type NodeViewRenderer = (props: NodeViewRendererProps) => (NodeView | {})
export type UnfilteredCommands = {
[Item in keyof AllExtensions]: AllExtensions[Item] extends Extension<any, infer ExtensionCommands>

View File

@ -324,7 +324,7 @@ export default function VueRenderer(component: Vue | VueConstructor, options?: P
: undefined
if (!parent) {
return undefined
return {}
}
return new VueNodeView(component, props, options) as NodeView