MCPcopy Create free account
hub / github.com/backnotprop/plannotator / readGeneration

Function readGeneration

packages/shared/draft.ts:41–45  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

39}
40
41function readGeneration(value: unknown): number | null {
42 return typeof value === "number" && Number.isInteger(value) && value >= 0
43 ? value
44 : null;
45}
46
47function readTombstoneGeneration(key: string): number | null {
48 const filePath = tombstonePath(key);

Callers 5

readTombstoneGenerationFunction · 0.85
saveDraftFunction · 0.85
loadDraftFunction · 0.85
deleteDraftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected