SortableJS / react-sortablejs

React bindings for SortableJS
http://sortablejs.github.io/react-sortablejs/
MIT License
2.07k stars 211 forks source link

ReactSortable element list type issues #266

Open sergiotran opened 1 year ago

sergiotran commented 1 year ago

Hello team. Thanks for creating a greate libary for me for easy to sortable a list, i'm using ReactSortable for sorting my person list with typescript, when i create a state with type IPerson[], then i put the state into the ReactSortable Element, the list prop show this message: Type 'IPerson[]' is not assignable to type 'ItemInterface[]'. How can i solve this, is this a bug or i am doing wrong some where, thanks for reading my issue, hope you guy can support me as soon as possible.

image