MCPcopy Create free account
hub / github.com/cloudflare/computer / readFileFrom

Function readFileFrom

packages/computer/src/git/index.ts:739–745  ·  view source on GitHub ↗
(fs: IsomorphicGitFSClient)

Source from the content-addressed store, hash-verified

737}
738
739function readFileFrom(fs: IsomorphicGitFSClient): ReadFileFn {
740 // `fs.promises` is typed as `object` on the public surface; the
741 // underlying @platformatic/vfs handle exposes `readFile`. Narrow
742 // locally rather than widening the exported type.
743 const promises = fs.promises as { readFile: ReadFileFn };
744 return (path) => promises.readFile(path);
745}

Callers 2

diffFunction · 0.85
diffSummaryFunction · 0.85

Calls 1

readFileMethod · 0.65

Tested by

no test coverage detected