Skip to content

Type Editor


Type Editor / @type-editor/changeset / simplify-changes/simplify-adjacent-changes

simplify-changes/simplify-adjacent-changes

Functions

FunctionDescription

simplifyAdjacentChanges

Processes a group of adjacent changes and adds simplified versions to the target array.

This function examines changes in a group to determine if they should be merged. Changes are merged if they're within the same word (no word boundary between them). Mixed insertions/deletions are expanded to word boundaries unless they're single character replacements.