import { Store } from "../store/index.js" export abstract class FileStore extends Store { abstract keys(): Promise> async all(): Promise> { const keys = await this.keys() const entries = await Promise.all( keys.map(async (path) => [path, await this.getOrFail(path)]), ) return Object.fromEntries(entries) } }