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
{{ message }}
This repository was archived by the owner on Feb 21, 2026. It is now read-only.
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.
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.