()
| 237 | } |
| 238 | |
| 239 | function undo() { |
| 240 | const entitiesToRebase = new Set<AnyEntity>(); |
| 241 | for (const change of changes) { |
| 242 | entitiesToRebase.add(change.entity); |
| 243 | undoEntityChange(change); |
| 244 | } |
| 245 | |
| 246 | for (const entity of entitiesToRebase) { |
| 247 | rebaseEntityChanges(entity); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | return { |
| 252 | pushChange, |
no test coverage detected