docs: timestamp -> time in automerge.change examples

This commit is contained in:
Alex Good 2023-03-09 17:48:05 +00:00
parent b34b46fa16
commit c19a26f9ec
No known key found for this signature in database
GPG key ID: 0EC7486D501B3B05

View file

@ -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"])