UNPKG
@skokenes/slate-yjs
Version:
latest (2.0.0)
2.0.0
0.1.7
Yjs bindings for Slate.
github.com/BitPhinix/slate-yjs
BitPhinix/slate-yjs
@skokenes/slate-yjs
/
dist
/
module
/
applyToSlate
/
arrayEvent.d.ts
10 lines
(9 loc)
•
271 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
Editor
}
from
'slate'
;
import
*
as
Y
from
'yjs'
;
import
{
SyncElement
}
from
'../model'
;
/** * Applies a Yjs Array event to a Slate editor. * *
@param
event
*/
export
default
function
applyArrayEvent
(
editor: Editor, event: Y.YArrayEvent<SyncElement>
):
void
;