Enode — API Reference
    Preparing search index...
    • Commits an instantly-saved, required text field (on blur / Enter). Saves the trimmed draft only when it differs from saved and isn't empty.

      Parameters

      • draft: string
      • saved: string
      • save: (value: string) => Promise<boolean>

        Persists the value; resolves false when the save failed.

      Returns Promise<TextCommitResult>

      The status and the value to show: the trimmed draft when saved, otherwise the last saved value (an empty or failed edit reverts).