mirror of
https://github.com/cudr/slate-collaborative.git
synced 2026-03-02 03:40:18 +00:00
Fix typing of SyncValue. (#12)
This commit is contained in:
@@ -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 }>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user