Skip to content

Commit

Permalink
Merge pull request #1399 from ismailhabib/master
Browse files Browse the repository at this point in the history
Minor fix for flow typing
  • Loading branch information
mweststrate authored Mar 14, 2018
2 parents 94a8882 + 2dc4f1d commit ea47438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export function flow<A1, A2, A3>(
): (a1: A1, a2: A2, a3: A3) => CancellablePromise<any>
export function flow<A1, A2>(
generator: (a1: A1, a2: A2) => IterableIterator<any>
): (a1: A1, a2: A2) => Promise<any>
export function flow<A1>(generator: (a1: A1) => IterableIterator<any>): (a1: A1) => Promise<any>
): (a1: A1, a2: A2) => CancellablePromise<any>
export function flow<A1>(generator: (a1: A1) => IterableIterator<any>): (a1: A1) => CancellablePromise<any>
export function flow(generator: Function) {
if (arguments.length !== 1)
fail(process.env.NODE_ENV && `Flow expects one 1 argument and cannot be used as decorator`)
Expand Down

0 comments on commit ea47438

Please sign in to comment.