We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d56abc + 5abc6cf commit 2aad916Copy full SHA for 2aad916
index.d.ts
@@ -154,7 +154,7 @@ interface JSZip {
154
* @param Path relative path to file
155
* @return File matching path, null if no file found
156
*/
157
- file(path: string): JSZip.JSZipObject;
+ file(path: string): JSZip.JSZipObject | null;
158
159
/**
160
* Get files matching a RegExp from archive
@@ -181,7 +181,7 @@ interface JSZip {
181
* @param name Name of the folder
182
* @return New JSZip object with the given folder as root or null
183
184
- folder(name: string): JSZip;
+ folder(name: string): JSZip | null;
185
186
187
* Returns new JSZip instances with the matching folders as root
0 commit comments