Skip to main content
Module

x/automerge/index.ts>next.updateText

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

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