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