(fs: IsomorphicGitFSClient)
| 737 | } |
| 738 | |
| 739 | function 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 | } |
no test coverage detected