Skip to content

Commit

Permalink
fix: update typings for node view decorations (ueberdosis#3783)
Browse files Browse the repository at this point in the history
* fix: update typings for node view decorations

* fix(core): update types for NodeView

* fix(core): declare props.decorations as decorationWithType
  • Loading branch information
bdbch authored Feb 27, 2023
1 parent 658839f commit c50bed5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ReactNodeViewRenderer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
DecorationWithType,
NodeView,
NodeViewProps,
NodeViewRenderer,
Expand Down Expand Up @@ -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<string, any>) => {
this.renderer.updateProps(props)
}
Expand Down

0 comments on commit c50bed5

Please sign in to comment.