(path: string, versionKey: string)
| 86 | } |
| 87 | |
| 88 | async loadFrom(path: string, versionKey: string): Promise<string | undefined> { |
| 89 | try { |
| 90 | return await readFile(join(this.versionsDir(path), `${versionKey}.html`), "utf8"); |
| 91 | } catch { |
| 92 | return undefined; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | on(event: "persist:error", handler: (e: PersistErrorEvent) => void): () => void { |
| 97 | if (event !== "persist:error") return () => {}; |
nothing calls this directly
no test coverage detected