| 139 | } |
| 140 | |
| 141 | interface JSZipGeneratorOptions<T extends OutputType = OutputType> { |
| 142 | /** |
| 143 | * Sets compression option for all entries that have not specified their own `compression` option |
| 144 | */ |
| 145 | compression?: Compression; |
| 146 | /** |
| 147 | * Sets compression level for `DEFLATE` compression. |
| 148 | */ |
| 149 | compressionOptions?: null | CompressionOptions; |
| 150 | type?: T; |
| 151 | comment?: string; |
| 152 | /** |
| 153 | * mime-type for the generated file. |
| 154 | * Useful when you need to generate a file with a different extension, ie: “.ods”. |
| 155 | * @default 'application/zip' |
| 156 | */ |
| 157 | mimeType?: string; |
| 158 | encodeFileName?(filename: string): string; |
| 159 | /** Stream the files and create file descriptors */ |
| 160 | streamFiles?: boolean; |
| 161 | /** DOS (default) or UNIX */ |
| 162 | platform?: 'DOS' | 'UNIX'; |
| 163 | } |
| 164 | |
| 165 | interface JSZipLoadOptions { |
| 166 | base64?: boolean; |
nothing calls this directly
no outgoing calls
no test coverage detected