fix more errors

This commit is contained in:
Philipp Kühn
2020-10-23 11:24:27 +02:00
parent c330e41a50
commit 54195d29eb
7 changed files with 21 additions and 19 deletions

View File

@@ -3,10 +3,10 @@ import {
} from 'prosemirror-model'
import { Plugin } from 'prosemirror-state'
import { ExtensionSpec, defaultExtension } from './Extension'
import { Attributes } from './types'
import { Attributes, Overwrite } from './types'
import { Editor } from './Editor'
export interface MarkExtensionSpec<Options = {}, Commands = {}> extends ExtensionSpec<Options, Commands> {
export interface MarkExtensionSpec<Options = {}, Commands = {}> extends Overwrite<ExtensionSpec<Options, Commands>, {
/**
* Inclusive
*/
@@ -104,7 +104,7 @@ export interface MarkExtensionSpec<Options = {}, Commands = {}> extends Extensio
editor: Editor,
type: MarkType,
}) => Plugin[],
}
}> {}
export type MarkExtension = Required<Omit<MarkExtensionSpec, 'defaultOptions'> & {
type: string,
@@ -122,7 +122,7 @@ const defaultMark: MarkExtension = {
group: null,
spanning: null,
parseHTML: () => null,
renderHTML: () => null,
renderHTML: () => '',
addAttributes: () => ({}),
}