Skip to content

Commit

Permalink
fix(core): fix broken types in definition file
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Feb 3, 2023
1 parent ef108df commit f659037
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
15 changes: 9 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/core/src/NodeView.ts
Expand Up @@ -9,12 +9,12 @@ import { isiOS } from './utilities/isiOS'

export class NodeView<
Component,
Editor extends CoreEditor = CoreEditor,
NodeEditor extends CoreEditor = CoreEditor,
Options extends NodeViewRendererOptions = NodeViewRendererOptions,
> implements ProseMirrorNodeView {
component: Component

editor: Editor
editor: NodeEditor

options: Options

Expand All @@ -30,7 +30,7 @@ export class NodeView<

constructor(component: Component, props: NodeViewRendererProps, options?: Partial<Options>) {
this.component = component
this.editor = props.editor as Editor
this.editor = props.editor as NodeEditor
this.options = {
stopEvent: null,
ignoreMutation: null,
Expand Down

0 comments on commit f659037

Please sign in to comment.