mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Merge pull request #24359 from sabrehagen/patch-2
@types/archiver - finalize is not a promise
This commit is contained in:
@@ -64,6 +64,6 @@ archiver.setModule(() => {});
|
||||
archiver.pointer();
|
||||
archiver.use(() => {});
|
||||
|
||||
archiver.finalize().then();
|
||||
archiver.finalize();
|
||||
|
||||
archiver.symlink('./path', './target');
|
||||
|
||||
2
types/archiver/index.d.ts
vendored
2
types/archiver/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user