fix(core): fix broken types in definition file

This commit is contained in:
Dominik Biedebach 2023-02-03 01:19:12 +01:00
parent ef108df92c
commit f659037d52
2 changed files with 12 additions and 9 deletions

15
package-lock.json generated
View File

@ -18947,10 +18947,12 @@
"name": "@tiptap/extension-collaboration",
"version": "2.0.0-beta.211",
"license": "MIT",
"dependencies": {
"y-prosemirror": "1.0.20"
},
"devDependencies": {
"@tiptap/core": "^2.0.0-beta.211",
"@tiptap/pm": "^2.0.0-beta.211",
"y-prosemirror": "1.0.20"
"@tiptap/pm": "^2.0.0-beta.211"
},
"funding": {
"type": "github",
@ -18965,17 +18967,18 @@
"name": "@tiptap/extension-collaboration-cursor",
"version": "2.0.0-beta.211",
"license": "MIT",
"devDependencies": {
"@tiptap/core": "^2.0.0-beta.211",
"dependencies": {
"y-prosemirror": "1.0.20"
},
"devDependencies": {
"@tiptap/core": "^2.0.0-beta.211"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"peerDependencies": {
"@tiptap/core": "^2.0.0-beta.209",
"y-prosemirror": "1.0.20"
"@tiptap/core": "^2.0.0-beta.209"
}
},
"packages/extension-color": {

View File

@ -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
@ -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,