ChangeSet
Unofficial
Import:
import type { ChangeSet } from '@codemirror/state';Signature:
export interface ChangeSetMethods
| Method | Returns | Description | |
|---|---|---|---|
| apply(doc) | Text | Apply the changes to a document, returning the modified document. | |
| compose(other) | ChangeSet | Combine two subsequent change sets into a single set. | |
| invert(doc) | ChangeSet | Given the document as it existed before the changes, return a change set that represents the inverse of this set. | |
| iterChanges(f, individual?) | void | Iterate over the changed ranges in the document. | |
| map(other, before?) | ChangeSet | Given another change set starting in the same document, maps this change set over the other. | |
| mapDesc(other, before?) | ChangeDesc | Map this description over another set of changes. | |
| toJSON() | unknown | Serialize this change set to a JSON-representable value. |
Links to this page: