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
Some of the fixes are easy, like adding : Component<{ item: number }> after const Sortable or :DragEventHandler after onDragStart, but some of the others are less convenient, like currentItems.indexOf(draggable.id) failing because Id includes both strings and numbers while currentItems is more precisely typed as just numbers.
The text was updated successfully, but these errors were encountered:
I deliberately didn't include typings in the examples because I think it adds unnecessary complexity for folks looking at them (if they are not used to typescript for example).
Maybe when creating fuller documentation adding them in would make sense.
Some of the fixes are easy, like adding
: Component<{ item: number }>
afterconst Sortable
or:DragEventHandler
afteronDragStart
, but some of the others are less convenient, likecurrentItems.indexOf(draggable.id)
failing becauseId
includes both strings and numbers whilecurrentItems
is more precisely typed as just numbers.The text was updated successfully, but these errors were encountered: