You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.d.ts
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,14 @@ interface JSZipSupport {
15
15
16
16
typeCompression='STORE'|'DEFLATE';
17
17
18
+
/**
19
+
* Depends on the compression type. With `STORE` (no compression), these options are ignored. With
20
+
* `DEFLATE`, you can give the compression level between 1 (best speed) and 9 (best compression).
21
+
*/
22
+
interfaceCompressionOptions{
23
+
level: number;
24
+
}
25
+
18
26
interfaceMetadata{
19
27
percent: number;
20
28
currentFile: string;
@@ -106,11 +114,9 @@ declare namespace JSZip {
106
114
*/
107
115
compression?: Compression;
108
116
/**
109
-
* Sets per file compression level. 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)).
117
+
* Sets per file compression level for `DEFLATE`compression.
110
118
*/
111
-
compressionOptions?: null|{
112
-
level: number;
113
-
};
119
+
compressionOptions?: null|CompressionOptions;
114
120
comment?: string;
115
121
/** Set to `true` if (and only if) the input is a "binary string" and has already been prepared with a `0xFF` mask. */
116
122
optimizedBinaryString?: boolean;
@@ -138,11 +144,9 @@ declare namespace JSZip {
138
144
*/
139
145
compression?: Compression;
140
146
/**
141
-
* 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)).
147
+
* Sets compression level for `DEFLATE`compression.
0 commit comments