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

@@ -3,13 +3,14 @@ import {
DOMParser,
Node as ProseMirrorNode,
Fragment,
ParseOptions,
} from 'prosemirror-model'
import elementFromString from '../utilities/elementFromString'
import { Content } from '../types'
export type CreateNodeFromContentOptions = {
slice?: boolean,
parseOptions?: Record<string, any>,
parseOptions?: ParseOptions,
}
export default function createNodeFromContent(