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
/
mapEvent.d.ts
9 lines
(8 loc)
•
221 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Editor
}
from
'slate'
;
import
*
as
Y
from
'yjs'
;
/** * Applies a Yjs map event to a Slate editor. * *
@param
event
*/
export
default
function
applyMapEvent
(
editor: Editor, event: Y.YMapEvent<unknown>
):
void
;