Skip to content

Commit c3f10e7

Browse files
author
Kyle Jones
committed
added documentation
1 parent 6be0ece commit c3f10e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ declare namespace JSZip {
128128
}
129129

130130
interface JSZipGeneratorOptions<T extends OutputType = OutputType> {
131+
/**
132+
* Sets compression option for all entries that have not specified their own `compression` option
133+
*/
131134
compression?: Compression;
132135
/**
133136
* The `compressionOptions` parameter depends on the compression type. With `STORE` (no compression), this parameter is ignored. With `DEFLATE`, you can give the compression level with `compressionOptions : {level:6}` (or any level between 1 (best speed) and 9 (best compression)).

0 commit comments

Comments
 (0)