(filePath: string, content: string)
| 103 | ) |
| 104 | |
| 105 | const writeFile = (filePath: string, content: string): T.Effect<OT.HasTracer, WriteFileError, void> => |
| 106 | OT.withSpan('writeFile', { attributes: { filePath } })( |
| 107 | T.tryCatchPromise( |
| 108 | () => fs.writeFile(filePath, content, 'utf8'), |
| 109 | (error) => new WriteFileError({ filePath, error }), |
| 110 | ), |
| 111 | ) |
| 112 | |
| 113 | const writeFileJson = ({ |
| 114 | filePath, |
no outgoing calls
no test coverage detected
searching dependent graphs…