UNPKG
mobx-keystone-yjs
Version:
latest (1.6.0)
1.6.0
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.0
Yjs bindings for mobx-keystone
mobx-keystone.js.org
xaviergonz/mobx-keystone
mobx-keystone-yjs
/
dist
/
types
/
binding
/
convertYjsDataToJson.d.ts
5 lines
(4 loc)
•
218 B
TypeScript
View Raw
1
2
3
4
5
import
{
PlainValue
}
from
'../plainTypes'
;
import
*
as
Y
from
"yjs"
;
export
type
YjsData
= Y.
Array
<
any
> | Y.
Map
<
any
> | Y.
Text
|
PlainValue
;
export
declare
const
convertYjsDataToJson
:
(
yjsData
:
YjsData
) =>
PlainValue
;