(comp: Composition, id: string)
| 52 | } |
| 53 | |
| 54 | export function removeElement(comp: Composition, id: string): void { |
| 55 | comp.removeElement(id); |
| 56 | // Inverse patch carries full serialized subtree — undo restores it. |
| 57 | } |
| 58 | |
| 59 | // ── Element handle pattern ──────────────────────────────────────────────────── |
| 60 | // comp.element(id) — curried handle, no stale-ref hazard |
nothing calls this directly
no test coverage detected