(key: string[], content: unknown)
| 294 | }) |
| 295 | |
| 296 | const write: Interface["write"] = (key: string[], content: unknown) => |
| 297 | Effect.gen(function* () { |
| 298 | yield* withResolved(key, (target, rw) => TxReentrantLock.withWriteLock(rw, writeJson(target, content))) |
| 299 | }) |
| 300 | |
| 301 | const list: Interface["list"] = Effect.fn("Storage.list")(function* (prefix: string[]) { |
| 302 | const dir = (yield* state).dir |
no test coverage detected