Method
saveToDownloads
(
filename: string,
dataUrl: string
)
Source from the content-addressed store, hash-verified
| 32 | } |
| 33 | |
| 34 | async saveToDownloads( |
| 35 | filename: string, |
| 36 | dataUrl: string |
| 37 | ): Promise<{ success: boolean; filePath?: string; error?: string }> { |
| 38 | return post<{ success: boolean; filePath?: string; error?: string }>('/cache/save-to-downloads', { |
| 39 | filename, |
| 40 | dataUrl, |
| 41 | }) |
| 42 | } |
| 43 | |
| 44 | async openDir(cacheId: string): Promise<{ success: boolean; error?: string }> { |
| 45 | return post<{ success: boolean; error?: string }>('/cache/open-dir', { cacheId }) |
Callers
nothing calls this directly
Tested by
no test coverage detected