Skip to main content

Module: actions/GenerateSnippet/editText

Namespaces

Functions

editText

editText(text, edits): string

For each edit in {@link edits} replaces the given Edit.offsets in {@link text} with Edit.text.

Parameters

NameTypeDescription
textstringThe text to edit
editsEdit[]The edits to perform

Returns

string

The edited string

Defined in

actions/GenerateSnippet/editText.ts:12