(type, target, manager)
| 1 | export default function registerTarget(type, target, manager) { |
| 2 | const registry = manager.getRegistry(); |
| 3 | const targetId = registry.addTarget(type, target); |
| 4 | |
| 5 | function unregisterTarget() { |
| 6 | registry.removeTarget(targetId); |
| 7 | } |
| 8 | |
| 9 | return { |
| 10 | handlerId: targetId, |
| 11 | unregister: unregisterTarget, |
| 12 | }; |
| 13 | } |
nothing calls this directly
no test coverage detected