Type Editor / @type-editor/changeset / types/ChangeSetConfig / ChangeSetConfig
Interface: ChangeSetConfig<Data>
Defined in: types/ChangeSetConfig.ts:11
Configuration options for a ChangeSet.
Type Parameters
| Type Parameter | Description |
|---|---|
Data | The type of metadata associated with changes. |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
combine | (dataA, dataB) => Data | Function to combine metadata from adjacent spans. Returns null if incompatible. | types/ChangeSetConfig.ts:15 |
doc | Node_2 | The starting document that changes are tracked from. | types/ChangeSetConfig.ts:13 |
encoder | TokenEncoder<any> | Encoder for tokenizing document content during diff operations. | types/ChangeSetConfig.ts:17 |