import { Fragment, Node as ProsemirrorNode, NodeType } from 'prosemirror-model' export function createCell(cellType: NodeType, cellContent?: Fragment | ProsemirrorNode | Array): ProsemirrorNode | null | undefined { if (cellContent) { return cellType.createChecked(null, cellContent) } return cellType.createAndFill() }