diff --git a/src/ReactNodeViewRenderer.tsx b/src/ReactNodeViewRenderer.tsx index d4cfc969be8..a48b79d2fa9 100644 --- a/src/ReactNodeViewRenderer.tsx +++ b/src/ReactNodeViewRenderer.tsx @@ -1,4 +1,5 @@ import { + DecorationWithType, NodeView, NodeViewProps, NodeViewRenderer, @@ -124,7 +125,7 @@ class ReactNodeView extends NodeView< return this.contentDOMElement } - update(node: ProseMirrorNode, decorations: Decoration[]) { + update(node: ProseMirrorNode, decorations: DecorationWithType[]) { const updateProps = (props?: Record) => { this.renderer.updateProps(props) }