remirror/remirror

View on GitHub
packages/remirror__pm/src/tables.ts

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import { CellSelection } from 'prosemirror-tables';

/**
 * Predicate checking whether the selection is a [[`CellSelection`]].
 *
 * @param value - the value to check
 */
export function isCellSelection(value: unknown): value is CellSelection {
  return typeof value === 'object' && value instanceof CellSelection;
}

export * from 'prosemirror-tables';