Skip to content

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 OffsetRange

Properties

PropertyTypeDescription
endOffsetnumberAn end offset of the range within the file's content.
startOffsetnumberA start offset of the range within the file's content.

Links to this page: