diff --git a/types/yauzl/index.d.ts b/types/yauzl/index.d.ts index c0e8b5dc88..11c1849574 100644 --- a/types/yauzl/index.d.ts +++ b/types/yauzl/index.d.ts @@ -83,6 +83,7 @@ export interface Options { lazyEntries?: boolean; decodeStrings?: boolean; validateEntrySizes?: boolean; + strictFileNames?: boolean; } export function open(path: string, options: Options, callback?: (err?: Error, zipfile?: ZipFile) => void): void; diff --git a/types/yauzl/yauzl-tests.ts b/types/yauzl/yauzl-tests.ts index 89dc69df30..a8b2217bee 100644 --- a/types/yauzl/yauzl-tests.ts +++ b/types/yauzl/yauzl-tests.ts @@ -26,3 +26,5 @@ yauzl.open('path/to/file.zip', {lazyEntries: true}, (err, zipfile) => { }); } }); + +yauzl.open('options.zip', {strictFileNames: true}, () => {});