Skip to content

Commit

Permalink
Merge pull request #10 from AmrSaber/dev
Browse files Browse the repository at this point in the history
Fix param type
  • Loading branch information
AmrSaber authored Jun 23, 2021
2 parents f26ee3a + 7e90f03 commit 655839f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "async-short-circuit",
"version": "1.1.1",
"version": "1.2.0",
"description": "Short circuit logic for boolean promises",
"main": "src/index.js",
"types": "src/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @returns a promise that resolves with the result of ANDing the given promises.
*/
export function asyncAnd(promises: Promise[]): Promise<any>;
export function asyncAnd(promises: Promise<any>[]): Promise<any>;


/**
Expand All @@ -25,4 +25,4 @@ export function asyncAnd(promises: Promise[]): Promise<any>;
*
* @returns a promise that resolves with the result of ORing the given promises.
*/
export function asyncOr(promises: Promise[]): Promise<any>;
export function asyncOr(promises: Promise<any>[]): Promise<any>;

0 comments on commit 655839f

Please sign in to comment.