MCPcopy Index your code
hub / github.com/tinyplex/tinybase / clear

Function clear

src/checkpoints/index.ts:247–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245 };
246
247 const clear = (): Checkpoints => {
248 clearCheckpointIds(backwardIds);
249 clearCheckpointIds(forwardIds);
250 if (!isUndefined(currentId)) {
251 clearCheckpointId(currentId);
252 }
253 currentId = undefined;
254 nextCheckpointId = 0;
255 addCheckpoint();
256 return checkpoints;
257 };
258
259 const clearForward = (): Checkpoints => {
260 if (!arrayIsEmpty(forwardIds)) {

Callers

nothing calls this directly

Calls 4

isUndefinedFunction · 0.90
clearCheckpointIdsFunction · 0.70
clearCheckpointIdFunction · 0.70
addCheckpointFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…