mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-23 19:19:03 +08:00
fix(core): fix broken types in definition file
This commit is contained in:
parent
ef108df92c
commit
f659037d52
15
package-lock.json
generated
15
package-lock.json
generated
@ -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": {
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user