refactoring

This commit is contained in:
Philipp Kühn
2021-03-16 22:22:13 +01:00
parent a76de1ab6d
commit 49fcf829f3
9 changed files with 91 additions and 55 deletions

View File

@@ -1,4 +1,9 @@
import { NodeView, NodeViewRenderer, NodeViewRendererProps } from '@tiptap/core'
import {
NodeView,
NodeViewProps,
NodeViewRenderer,
NodeViewRendererProps,
} from '@tiptap/core'
import {
ref,
provide,
@@ -20,7 +25,7 @@ class VueNodeView extends NodeView<Component, Editor> {
renderer!: VueRenderer
mount() {
const props = {
const props: NodeViewProps = {
editor: this.editor,
node: this.node,
decorations: this.decorations,