(key: string[])
| 270 | }) |
| 271 | |
| 272 | const read: Interface["read"] = <T>(key: string[]) => |
| 273 | Effect.gen(function* () { |
| 274 | const value = yield* withResolved(key, (target, rw) => |
| 275 | TxReentrantLock.withReadLock(rw, wrap(target, fs.readJson(target))), |
| 276 | ) |
| 277 | return value as T |
| 278 | }) |
| 279 | |
| 280 | const update: Interface["update"] = <T>(key: string[], fn: (draft: T) => void) => |
| 281 | Effect.gen(function* () { |
nothing calls this directly
no test coverage detected