| 2 | import type { FileCreateOptions, FileReader, FileWriter } from "../filesystem"; |
| 3 | |
| 4 | export class ZipFileReader implements FileReader { |
| 5 | zipObject: JSZipObject; |
| 6 | |
| 7 | constructor(zipObject: JSZipObject) { |
| 8 | this.zipObject = zipObject; |
| 9 | } |
| 10 | |
| 11 | read(type?: "string" | "blob"): Promise<string | Blob> { |
| 12 | return this.zipObject.async(type || "string"); |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | export class ZipFileWriter implements FileWriter { |
| 17 | zip: JSZipFile; |
nothing calls this directly
no outgoing calls
no test coverage detected