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

Function tombstonePath

packages/shared/draft.ts:37–39  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

35}
36
37function tombstonePath(key: string): string {
38 return join(getDraftDir(), `${key}.deleted.json`);
39}
40
41function readGeneration(value: unknown): number | null {
42 return typeof value === "number" && Number.isInteger(value) && value >= 0

Callers 3

readTombstoneGenerationFunction · 0.85
writeTombstoneGenerationFunction · 0.85
clearTombstoneFunction · 0.85

Calls 1

getDraftDirFunction · 0.85

Tested by

no test coverage detected