You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my typescript project I've typed the value of my Slate editor as Array<Node> (Node type coming from Slate).
When I use serialize, the first argument for chunk is typed as BlockType or LeafType as defined in the remark-slate package. Where have these types come from and do they have equivalents from Slate itself?
Any guidance appreciated, thanks.
The text was updated successfully, but these errors were encountered:
Ahh, didn't realize I wasn't exporting the types... Would be happy to merge any PR's that refine the types/typescript if there is any interest in contributing back!
I may be misunderstanding something here.
In my typescript project I've typed the value of my Slate editor as
Array<Node>
(Node type coming from Slate).When I use
serialize
, the first argument forchunk
is typed asBlockType
orLeafType
as defined in the remark-slate package. Where have these types come from and do they have equivalents from Slate itself?Any guidance appreciated, thanks.
The text was updated successfully, but these errors were encountered: