@@ -47,7 +47,7 @@ declare class AdmZip {
4747 readAsTextAsync (
4848 fileName : string | AdmZip . IZipEntry ,
4949 callback : ( data : string , err : string ) => void ,
50- encoding ?: string
50+ encoding ?: string ,
5151 ) : void ;
5252 /**
5353 * Remove the entry from the file or the entry and all its nested directories
@@ -115,7 +115,7 @@ declare class AdmZip {
115115 localPath : string ,
116116 callback : ( success ?: boolean , err ?: string ) => void ,
117117 zipPath ?: string ,
118- filter ?: RegExp | ( ( filename : string ) => boolean )
118+ filter ?: RegExp | ( ( filename : string ) => boolean ) ,
119119 ) : void ;
120120 /**
121121 *
@@ -126,7 +126,7 @@ declare class AdmZip {
126126 */
127127 addLocalFolderPromise (
128128 localPath : string ,
129- props : { zipPath ?: string , filter ?: RegExp | ( ( filename : string ) => boolean ) }
129+ props : { zipPath ?: string ; filter ?: RegExp | ( ( filename : string ) => boolean ) } ,
130130 ) : Promise < void > ;
131131 /**
132132 * Allows you to create a entry (file or directory) in the zip file.
@@ -203,7 +203,7 @@ declare class AdmZip {
203203 targetPath : string ,
204204 overwrite ?: boolean ,
205205 keepOriginalPermission ?: boolean ,
206- password ?: string | Buffer
206+ password ?: string | Buffer ,
207207 ) : void ;
208208 /**
209209 * Extracts the entire archive to the given location.
@@ -231,10 +231,7 @@ declare class AdmZip {
231231 * if a zip was opened and no `targetFileName` is provided, it will
232232 * overwrite the opened zip.
233233 */
234- writeZipPromise (
235- targetFileName ?: string ,
236- props ?: { overwrite ?: boolean , perm ?: number }
237- ) : Promise < boolean > ;
234+ writeZipPromise ( targetFileName ?: string , props ?: { overwrite ?: boolean ; perm ?: number } ) : Promise < boolean > ;
238235 /**
239236 * Returns the content of the entire zip file.
240237 */
@@ -371,7 +368,7 @@ declare namespace AdmZip {
371368 /* Read entries during load (initial loading may be slower) */
372369 readEntries : boolean ;
373370 /* Read method */
374- method : typeof Constants [ keyof typeof Constants ] | number ;
371+ method : ( typeof Constants ) [ keyof typeof Constants ] | number ;
375372 /* file system */
376373 fs : null | typeof FS ;
377374 }
0 commit comments