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-yjs
/
node
/
move-node.d.ts
10 lines
(9 loc)
•
259 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
MoveNodeOperation
}
from
'slate'
;
import
{
SharedType
}
from
'../../model'
;
/** * Applies a move node operation to a SharedType. * *
@param
doc
*
@param
op
*/
export
default
function
moveNode
(
doc: SharedType, op: MoveNodeOperation
):
SharedType
;