diff --git a/index.d.ts b/index.d.ts index 6d832ebf..f5d642f0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -56,7 +56,7 @@ interface OutputByType { // compressedContent: string|ArrayBuffer|Uint8Array|Buffer; // } -type InputFileFormat = InputByType[keyof InputByType]; +type InputFileFormat = InputByType[keyof InputByType] | Promise; declare namespace JSZip { type InputType = keyof InputByType; @@ -266,15 +266,7 @@ interface JSZip { /** * Create JSZip instance */ - - /** - * Create JSZip instance - * If no parameters given an empty zip archive will be created - * - * @param data Serialized zip archive - * @param options Description of the serialized zip archive - */ - new (data?: InputFileFormat, options?: JSZip.JSZipLoadOptions): this; + new(): this; (): JSZip;