• Create an automerge document from a POJO

    Example

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

    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>

Generated using TypeDoc