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
TypeScript gives an error Subsequent property declarations must have the same type. Property 'data' must be of type 'DataRef<AnyData>', but here has type 'DataRef<MyDataType>'.
It would be great if a future version could expose an API for either extending the interface, or at passing generics to the DnDContext component.
The text was updated successfully, but these errors were encountered:
Hi, I'm using dnd-kit in a TypeScript project, and would like to strongly type the data property attached to Draggable objects.
I tried extending the interface, the way other libraries sometimes implement it, but it didn't work.
TypeScript gives an error
Subsequent property declarations must have the same type. Property 'data' must be of type 'DataRef<AnyData>', but here has type 'DataRef<MyDataType>'.
It would be great if a future version could expose an API for either extending the interface, or at passing generics to the DnDContext component.
The text was updated successfully, but these errors were encountered: