(item: DroppableItem)
| 66 | } |
| 67 | |
| 68 | export function registerDropItem(item: DroppableItem) { |
| 69 | dropItems.set(item.element, item); |
| 70 | return (): void => { |
| 71 | dropItems.delete(item.element); |
| 72 | }; |
| 73 | } |
| 74 | |
| 75 | interface DragTarget { |
| 76 | element: FocusableElement; |