Skip to content

Commit

Permalink
update create() in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pvh committed Jan 24, 2024
1 parent e9e7d3f commit cb7a0dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/automerge-repo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ This library provides two main components: the `Repo` itself, and the `DocHandle

A `Repo` exposes these methods:

- `create<T>()`
Creates a new, empty `Automerge.Doc` and returns a `DocHandle` for it.
- `create<T>(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<T>(docId: DocumentId)`
Looks up a given document either on the local machine or (if necessary) over any configured
networks.
Expand Down

0 comments on commit cb7a0dc

Please sign in to comment.