Closed canadaduane closed 4 years ago
It might also be a good time to change all the "id: string" params to "url: string".
This now has some types! I'm going to close this out and open a separate issue to remove / replace the old chat example code.
I think the old interface (0.3.x) was to use something like
import Hypermerge from 'hypermerge'
while it seems the most common way to use the latest Hypermerge isimport { Repo } from 'hypermerge'
. However, there aren't many hints as to how to do that in the code.https://github.com/automerge/hypermerge/blob/master/src/Repo.ts#L38
The Chat example also references the "old way":
https://github.com/automerge/hypermerge/blob/master/examples/chat/channel.js