(checkpointId: Id)
| 219 | }; |
| 220 | |
| 221 | const goTo = (checkpointId: Id): Checkpoints => { |
| 222 | const action = arrayHas(backwardIds, checkpointId) |
| 223 | ? goBackwardImpl |
| 224 | : arrayHas(forwardIds, checkpointId) |
| 225 | ? goForwardImpl |
| 226 | : undefined; |
| 227 | while (!isUndefined(action) && checkpointId != currentId) { |
| 228 | action(); |
| 229 | } |
| 230 | callListenersIfChanged(); |
| 231 | return checkpoints; |
| 232 | }; |
| 233 | |
| 234 | const addCheckpointIdsListener = (listener: CheckpointIdsListener): Id => |
| 235 | addListener(listener, checkpointIdsListeners); |
nothing calls this directly
no test coverage detected
searching dependent graphs…