diff --git a/index.d.ts b/index.d.ts index b1c93082..3a8edf2a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -155,7 +155,7 @@ declare namespace JSZip { * @default 'application/zip' */ mimeType?: string; - encodeFileName?(filename: string): string; + encodeFileName?(filename: string): Buffer; /** Stream the files and create file descriptors */ streamFiles?: boolean; /** DOS (default) or UNIX */