Skip to content

Commit

Permalink
updatee type of addFile content argument
Browse files Browse the repository at this point in the history
  • Loading branch information
waptik committed Aug 30, 2022
1 parent 042db66 commit 611e90b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ export class JSZip {
* @param options Optional information about the file
* @return JSZip object
*/
addFile(
addFile<T extends keyof InputByType>(
path: string,
content?: InputByType,
content?: InputByType[T],
options?: JSZipFileOptions,
): JSZipObject {
// @ts-ignores
Expand Down

0 comments on commit 611e90b

Please sign in to comment.