OffsetRange
A range within a file’s content, expressed in character offsets.
Both bounds are inclusive: a reference whose own offsets coincide exactly with OffsetRange.startOffset / OffsetRange.endOffset is inside the range.
Import:
import type { OffsetRange } from 'obsidian-dev-utils/obsidian/reference';Signature:
export interface OffsetRangeProperties
| Property | Type | Description |
|---|---|---|
| endOffset | number | An end offset of the range within the file's content. |
| startOffset | number | A start offset of the range within the file's content. |
Links to this page: