UNPKG
zustand-yjs
Version:
latest (0.0.14)
0.0.14
0.0.13
0.0.12
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.1
Zustand Stores with Yjs
github.com/tandem-pt/zustand-yjs
zustand-yjs
/
useYDoc.d.ts
5 lines
(4 loc)
•
165 B
TypeScript
View Raw
1
2
3
4
5
import
*
as
Y
from
'yjs'
;
import
{
MountFunction
}
from
'./types'
;
declare
const
useYDoc
:
(
name
:
string
,
mount
:
MountFunction
) =>
Y.
Doc
;
export
default
useYDoc;