Skip to content

Commit

Permalink
fix(typescript): Add generic to addPromise().
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Walton committed May 7, 2018
1 parent 7ebce00 commit de41bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface PromiseBreakerInstance {
break(options: MakeBreakOptions, promiseFn: Function): Function;
break(promiseFn: Function): Function;

addPromise(done: Function | undefined | null, asyncFn: Function): Promise<any> | null;
addPromise<T>(done: Function | undefined | null, asyncFn: Function): Promise<T> | void;

addCallback<T>(
done: Function | undefined | null,
Expand Down

0 comments on commit de41bf2

Please sign in to comment.