( filePath: string, )
| 39 | |
| 40 | // NOTE the following functions can't be easily lifted |
| 41 | export const readFileJson = <T extends JsonValue = JsonValue>( |
| 42 | filePath: string, |
| 43 | ): T.Effect<OT.HasTracer & HasFs, ReadFileError | FileNotFoundError | JsonParseError, T> => |
| 44 | T.accessServiceM(FsTag)((_) => _.readFileJson<T>(filePath)) |
| 45 | |
| 46 | export const readFileJsonIfExists = <T extends JsonValue = JsonValue>( |
| 47 | filePath: string, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…