Skip to content

Commit

Permalink
feat(promiseSeries): add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Mar 30, 2019
1 parent 202d43f commit 81ea018
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/promiseSeries.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* 顺序执行异步任务。
*
* @param tasks 要执行的任务列表
* @returns 全部任务执行结果组成的数组
*/
export function promiseSeries<
// eslint-disable-next-line space-before-function-paren
T extends (...args: any) => Promise<any>,
Expand Down

0 comments on commit 81ea018

Please sign in to comment.