@automerge/automerge - v3.1.1
    Preparing search index...

    Function init

    • 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 | 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 Doc<T>