jszip icon indicating copy to clipboard operation
jszip copied to clipboard

JSZipGeneratorOptions.encodeFileName declaration changed

Open chrisxvin opened this issue 3 years ago • 0 comments

In the document, encodeFileName is described as "The function takes a string and returns a bytes array (Uint8Array or Array)", but in .d.ts file, it's declared as encodeFileName?(filename: string): string;, and cannot use code from the doc.

I'm confused now...How can I encode file name correctly? Thanks.

chrisxvin avatar Jun 14 '22 01:06 chrisxvin