UNPKG

prosemirror-flat-list

Version:
10 lines (7 loc) 285 B
import type { NodeSelection, Selection } from 'prosemirror-state' import { isNodeSelection } from './is-node-selection' export function isBlockNodeSelection( selection: Selection, ): selection is NodeSelection { return isNodeSelection(selection) && selection.node.type.isBlock }