Plate, Slate and document model types. #1259
-
Hi, I am trying to update I have custom code that works on slate types but I have issues with typing. I think it is linked to this https://docs.slatejs.org/concepts/12-typescript How does plate handles this ? Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
zbeyens
Dec 1, 2021
Replies: 1 comment 1 reply
-
We don't use this (declaration merging), we rather use generics so we had to fork many types (Editor -> TEditor, Node -> TNode, Element -> TElement, etc.) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zbeyens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We don't use this (declaration merging), we rather use generics so we had to fork many types (Editor -> TEditor, Node -> TNode, Element -> TElement, etc.)