Fix typing of SyncValue. (#12)

This commit is contained in:
Darren Zhao
2020-05-14 02:52:05 -04:00
committed by GitHub
parent 6adf4082dc
commit 2a6d99c171

View File

@@ -1,7 +1,7 @@
import Automerge from 'automerge' import Automerge from 'automerge'
import { Node, Range } from 'slate' import { Node, Range } from 'slate'
export type SyncValue = Automerge.List<Node[]> export type SyncValue = Automerge.List<Node>
export type SyncDoc = Automerge.Doc<{ children: SyncValue; cursors: Cursors }> export type SyncDoc = Automerge.Doc<{ children: SyncValue; cursors: Cursors }>