import { NodeSelection } from '@tiptap/pm/state' export function isNodeSelection(value: unknown): value is NodeSelection { return value instanceof NodeSelection }