stackiva / slate-collaborate-support

0 stars 0 forks source link

`value` returned by `useSlateCollaborate` should be of type `Descendant` #28

Closed thesunny closed 2 years ago

thesunny commented 2 years ago

Currently useSlateCollaborate returns a value with a type 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.

wleroux commented 2 years ago

Issue has been resolved in 0.0.22