UNPKG
marshall-y-slate
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
0.0.4
0.0.2
0.0.1
Yjs bindings for Slate.
github.com/MarshallChang/y-slate
MarshallChang/y-slate
marshall-y-slate
/
dist
/
module
/
apply-to-slate
/
map-event.d.ts
9 lines
(8 loc)
•
260 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Editor
,
NodeOperation
}
from
'slate'
;
import
*
as
Y
from
'yjs'
;
/** * Translates a Yjs map event into a slate operations. * *
@param
event
*/
export
default
function
translateMapEvent
(
editor: Editor, event: Y.YMapEvent<unknown>
):
NodeOperation
[];