UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

16 lines (15 loc) 606 B
import { PersistedSlice } from './PersistedSlice'; import type { Range } from '../rga/Range'; /** * Represents a block split in the text, i.e. it is a *marker* that shows * where a block was split. Markers also insert one "\n" new line character. * Both marker ends are attached to the "before" anchor fo the "\n" new line * character, i.e. it is *collapsed* to the "before" anchor. */ export declare class MarkerSlice<T = string> extends PersistedSlice<T> { /** * Returns the {@link Range} which exactly contains the block boundary of this * marker. */ boundary(): Range<T>; }