The notes with a step's note set to the text, its ends trimmed: a new note goes last, one edited keeps its place and unknown keys, and an empty text takes the note away. The notes as they were when nothing changes.

  • Parameters

    • notes: undefined | readonly StepNote[]
    • stepId: string
    • text: string

    Returns undefined | readonly StepNote[]