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

Property Type Description
add? readonly CmRange<T>[] An array of ranges to add.
filterFrom? number The start of the range to filter.
filterTo? number The end of the range to filter.
sort? boolean Whether to sort the ranges.

Methods

Method Returns Description
filter(from, to, value) boolean A filter function that determines which existing ranges to keep.