Skip to content

Commit

Permalink
fix: ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
fupengl committed Mar 23, 2021
1 parent 33b4c88 commit 8b47add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/promise/single-lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function singleLock<T = any>() {
}
}

function exit<R = any>(args: R) {
function exit<R = any>(args?: R) {
queue.shift();
const reject = queue.shift();
if (reject) {
Expand Down

0 comments on commit 8b47add

Please sign in to comment.