Automerge Repo - v2.3.0-alpha.0
    Preparing search index...
    • Create a new automerge document

      Type Parameters

      • T

        The type of value contained in the document. This will be the type that is passed to the change closure in change

      Parameters

      • Optional_opts: string | Automerge.InitOptions<T>

        Either an actorId or an InitOptions (which may contain an actorId). If this is null the document will be initialised with a random actor ID

      Returns Automerge.Doc<T>