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

    Function from

    • Create an automerge document from a POJO

      Type Parameters

      • T extends Record<string, unknown>

        The type of the value passed to from and the type the resulting document will contain

      Parameters

      • initialState: T | Doc<T>

        The initial state which will be copied into the document

      • Optional_opts: string | InitOptions<T>

      Returns Doc<T>

      const doc = automerge.from({
      tasks: [
      {description: "feed dogs", done: false}
      ]
      })