Skip to content

Type Editor


Type Editor / @type-editor/changeset / simplify-changes/expand-to-word-boundaries

simplify-changes/expand-to-word-boundaries

Functions

FunctionDescription

expandToWordBoundaries

Expands a position range to word boundaries.

If the range starts or ends within a word, expands it to include the entire word. This ensures that changes don't split words in confusing ways.