fix: add correct type for parseOptions

This commit is contained in:
Philipp Kühn
2021-04-26 23:43:32 +02:00
parent b8011dd095
commit 592892edd1
3 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import { TextSelection } from 'prosemirror-state'
import { ParseOptions } from 'prosemirror-model'
import createDocument from '../helpers/createDocument'
import { Command, RawCommands, Content } from '../types'
@@ -11,7 +12,7 @@ declare module '@tiptap/core' {
setContent: (
content: Content,
emitUpdate?: boolean,
parseOptions?: Record<string, any>,
parseOptions?: ParseOptions,
) => Command,
}
}