improve schema types

This commit is contained in:
Philipp Kühn
2020-03-31 22:57:39 +02:00
parent 208ba890ef
commit c60ad0f107
8 changed files with 19 additions and 19 deletions

View File

@@ -1,5 +1,6 @@
import { Mark } from '@tiptap/core'
import { toggleMark } from 'prosemirror-commands'
import { MarkSpec } from 'prosemirror-model'
declare module '@tiptap/core/src/Editor' {
interface Editor {
@@ -18,7 +19,7 @@ export default class Italic extends Mark {
})
}
schema() {
schema(): MarkSpec {
return {
parseDOM: [
{ tag: 'i' },