Skip to content

Commit

Permalink
fix(core): declare props.decorations as decorationWithType
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Feb 27, 2023
1 parent d5c1edc commit cc22bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/NodeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class NodeView<
} as Options
this.extension = props.extension
this.node = props.node
this.decorations = props.decorations
this.decorations = props.decorations as DecorationWithType[]
this.getPos = props.getPos
this.mount()
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export type NodeViewRendererProps = {
node: ProseMirrorNode
getPos: (() => number) | boolean
HTMLAttributes: Record<string, any>
decorations: DecorationWithType[]
decorations: Decoration[]
extension: Node
}

Expand Down

0 comments on commit cc22bae

Please sign in to comment.