Skip to main content
Module

x/automerge/next.ts>updateText

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
Go to Latest
function updateText
import { updateText } from "https://deno.land/x/automerge@2.2.0/next.ts";

Update the value of a string

Parameters

doc: Doc<unknown>
  • The document to modify
path: stable.Prop[]
  • The path to the string to modify
newText: string
  • The new text to update the value to