MCPcopy Create free account
hub / github.com/Make-md/makemd / spacesFromFileCache

Function spacesFromFileCache

src/core/utils/spaces/space.ts:47–52  ·  view source on GitHub ↗
(cache: PathState, superstate: Superstate)

Source from the content-addressed store, hash-verified

45 space
46
47 export const spacesFromFileCache = (cache: PathState, superstate: Superstate) => {
48 return (cache?.spaces ?? [])
49 .map((f) => superstate.spacesIndex.get(f))
50 .filter((f) => f)
51 .map((f) => f.space);
52 };

Callers

nothing calls this directly

Calls 3

filterMethod · 0.80
mapMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected