Merge pull request #24359 from sabrehagen/patch-2

@types/archiver - finalize is not a promise
This commit is contained in:
Nathan Shively-Sanders
2018-03-26 10:08:36 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -64,6 +64,6 @@ archiver.setModule(() => {});
archiver.pointer();
archiver.use(() => {});
archiver.finalize().then();
archiver.finalize();
archiver.symlink('./path', './target');

View File

@@ -35,7 +35,7 @@ declare namespace archiver {
directory(dirpath: string, destpath: false | string, data?: EntryData | EntryDataFunction): this;
file(filename: string, data: EntryData): this;
glob(pattern: string, options?: glob.IOptions, data?: EntryData): this;
finalize(): Promise<void>;
finalize(): void;
setFormat(format: string): this;
setModule(module: Function): this;