Skip to content

RangeSetUpdate<T>

Unofficial

Configuration passed to @codemirror/state#RangeSet.update.

Import:

import type { RangeSetUpdate } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface RangeSetUpdate<T extends RangeValue>

Properties

PropertyTypeDescription
add?readonly CmRange<T>[]An array of ranges to add.
filterFrom?numberThe start of the range to filter.
filterTo?numberThe end of the range to filter.
sort?booleanWhether to sort the ranges.

Methods

MethodReturnsDescription
filter(from, to, value)booleanA filter function that determines which existing ranges to keep.