API reference

Interface ChunkRange<TChunk>

Points at a range of characters between two points inside Chunks.

Analogous to the DOM’s (Abstract)Range. Each index expresses an offset inside the value of the corresponding Chunk.data, and can equal the length of that data in order to point to the position right after the chunk’s last character.

Type parameters

Hierarchy

  • ChunkRange

Index

Properties

endChunk

endChunk: TChunk

endIndex

endIndex: number

startChunk

startChunk: TChunk

startIndex

startIndex: number