Function
getDroppableCollectionRef
(
state: DroppableCollectionState
)
Source from the content-addressed store, hash-verified
| 44 | } |
| 45 | |
| 46 | export function getDroppableCollectionRef( |
| 47 | state: DroppableCollectionState |
| 48 | ): RefObject<HTMLElement | null> { |
| 49 | let {ref} = droppableCollectionMap.get(state) || {}; |
| 50 | if (!ref) { |
| 51 | throw new Error('Droppable item outside a droppable collection'); |
| 52 | } |
| 53 | |
| 54 | return ref; |
| 55 | } |
| 56 | |
| 57 | export function getTypes(items: DragItem[]): Set<string> { |
| 58 | let types = new Set<string>(); |
Tested by
no test coverage detected