ianstormtaylor / slate

A completely customizable framework for building rich text editors. (Currently in beta.)
http://slatejs.org
MIT License
30k stars 3.26k forks source link

TypeScript Type Errors #5764

Open ColeBlender opened 2 weeks ago

ColeBlender commented 2 weeks ago

Description This library is pretty good but either the typing system is trash or the code in RichTextExample.tsx is trash. If there's going to be a "TS Example" then it should work with TS.

Steps Add the RichTextExample to your project. There are errors everywhere.

Expectation Zero type errors in the official example.

adrianruizexio commented 1 week ago

I have the same problem, and had to manually adapt the types to my own custom types. The problem with this is that the expected behaviour is not what you would expect, and I'm currently struggling to get everything working like in the examples. Please someone fix this!