(id: DraggableId)
| 52 | } |
| 53 | |
| 54 | function getDraggableById(id: DraggableId): DraggableEntry { |
| 55 | const entry: DraggableEntry | null = findDraggableById(id); |
| 56 | invariant(entry, `Cannot find draggable entry with id [${id}]`); |
| 57 | return entry; |
| 58 | } |
| 59 | |
| 60 | const draggableAPI: DraggableAPI = { |
| 61 | register: (entry: DraggableEntry) => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…