From cb7a0dcf873eb36c25b051c133c190c186a1a822 Mon Sep 17 00:00:00 2001 From: Peter van Hardenberg Date: Tue, 23 Jan 2024 16:31:31 -0800 Subject: [PATCH] update create() in readme --- packages/automerge-repo/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/automerge-repo/README.md b/packages/automerge-repo/README.md index f9371f9a1..06e573d0c 100644 --- a/packages/automerge-repo/README.md +++ b/packages/automerge-repo/README.md @@ -38,8 +38,8 @@ This library provides two main components: the `Repo` itself, and the `DocHandle A `Repo` exposes these methods: -- `create()` - Creates a new, empty `Automerge.Doc` and returns a `DocHandle` for it. +- `create(initialValue: T?)` + Creates a new `Automerge.Doc` and returns a `DocHandle` for it. Accepts an optional initial value for the document. Produces an empty document (potentially violating the type!) otherwise. - `find(docId: DocumentId)` Looks up a given document either on the local machine or (if necessary) over any configured networks.