(path: string, content?: ZipEntryData, options?: JSZipFileOptions)
| 82 | file(path: string, content: ZipEntryData, options?: JSZipFileOptions): this; |
| 83 | |
| 84 | file(path: string, content?: ZipEntryData, options?: JSZipFileOptions): JSZippZipObject | this | null { |
| 85 | if (content === undefined) { |
| 86 | return this.files[path] || null; |
| 87 | } |
| 88 | this.files[path] = new JSZippZipObject(path, content, options?.date); |
| 89 | return this; |
| 90 | } |
| 91 | |
| 92 | remove(path: string) { |
| 93 | delete this.files[path]; |
no outgoing calls