Closed thesunny closed 2 years ago
Currently useSlateCollaborate returns a value with a type Node[].
useSlateCollaborate
value
Node[]
The value needs to be passed to <Slate value={value} /> which expects value to be of type Descendant[]. Because it is of type Node[] instead, we get a typing error.
<Slate value={value} />
Descendant[]
Issue has been resolved in 0.0.22
0.0.22
Currently
useSlateCollaborate
returns avalue
with a typeNode[]
.The
value
needs to be passed to<Slate value={value} />
which expects value to be of typeDescendant[]
. Because it is of typeNode[]
instead, we get a typing error.