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