wip: fix extendNodeSchema and extendMarkSchema

This commit is contained in:
Philipp Kühn
2021-04-15 21:43:41 +02:00
parent 07bc40ce75
commit 016bda4010
3 changed files with 23 additions and 30 deletions

View File

@@ -3,6 +3,7 @@ import { Command as ProseMirrorCommand } from 'prosemirror-commands'
import { InputRule } from 'prosemirror-inputrules'
import { Editor } from './Editor'
import { Node } from './Node'
import { Mark } from './Mark'
import mergeDeep from './utilities/mergeDeep'
import { GlobalAttributes, RawCommands, ParentConfig } from './types'
import { ExtensionConfig } from '.'
@@ -102,7 +103,7 @@ declare module '@tiptap/core' {
options: Options,
parent: ParentConfig<ExtensionConfig<Options>>['extendMarkSchema'],
},
extension: Node,
extension: Mark,
) => {
[key: string]: any,
}) | null,