Skip to main content

TextPointCaretSliceTuple

type

A utility type to specify that a CaretRange may have zero, one, or two associated TextPointCaretSlice. If the anchor and focus are on the same node, the anchorSlice will contain the slice and focusSlie will be null.

type TextPointCaretSliceTuple<D extends CaretDirection> = readonly [ anchorSlice: null | TextPointCaretSlice<TextNode, D>, focusSlice: null | TextPointCaretSlice<TextNode, D> ]

Import

import { TextPointCaretSliceTuple } from '@modular/sdk/editor';