mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added dir to JSZipFileOptions.
This commit is contained in:
parent
4b83c33651
commit
60fb8a1023
1
jszip/index.d.ts
vendored
1
jszip/index.d.ts
vendored
@ -148,6 +148,7 @@ interface JSZipFileOptions {
|
||||
comment?: string;
|
||||
optimizedBinaryString?: boolean;
|
||||
createFolders?: boolean;
|
||||
dir?: boolean;
|
||||
}
|
||||
|
||||
interface JSZipObjectOptions {
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user