Added dir to JSZipFileOptions.

This commit is contained in:
Robert Buehler 2017-01-10 13:30:44 -06:00
parent 4b83c33651
commit 60fb8a1023
2 changed files with 2 additions and 0 deletions

1
jszip/index.d.ts vendored
View File

@ -148,6 +148,7 @@ interface JSZipFileOptions {
comment?: string;
optimizedBinaryString?: boolean;
createFolders?: boolean;
dir?: boolean;
}
interface JSZipObjectOptions {

View File

@ -9,6 +9,7 @@ var SEVERITY = {
function createTestZip(): JSZip {
var zip = new JSZip();
zip.file("test.txt", "test string");
zip.file("test", null, { dir: true });
zip.file("test/test.txt", "test string");
return zip
}