• Applies edits to an input string.

    Parameters

    • text: string

      The input text

    • edits: EditResult

      Edit operations following the format described in EditResult.

    Returns string

    The text with the applied edits.

    An error if the edit operations are not well-formed as described in EditResult.