docs: timestamp -> time in automerge.change examples
This commit is contained in:
parent
b34b46fa16
commit
c19a26f9ec
1 changed files with 2 additions and 2 deletions
|
@ -305,7 +305,7 @@ export function from<T extends Record<string, unknown>>(
|
|||
* @example A change with a message and a timestamp
|
||||
*
|
||||
* ```
|
||||
* doc1 = automerge.change(doc1, {message: "add another value", timestamp: 1640995200}, d => {
|
||||
* doc1 = automerge.change(doc1, {message: "add another value", time: 1640995200}, d => {
|
||||
* d.key2 = "value2"
|
||||
* })
|
||||
* ```
|
||||
|
@ -316,7 +316,7 @@ export function from<T extends Record<string, unknown>>(
|
|||
* let patchCallback = patch => {
|
||||
* patchedPath = patch.path
|
||||
* }
|
||||
* doc1 = automerge.change(doc1, {message, "add another value", timestamp: 1640995200, patchCallback}, d => {
|
||||
* doc1 = automerge.change(doc1, {message, "add another value", time: 1640995200, patchCallback}, d => {
|
||||
* d.key2 = "value2"
|
||||
* })
|
||||
* assert.equal(patchedPath, ["key2"])
|
||||
|
|
Loading…
Add table
Reference in a new issue