From de41bf23e8e386c3115dfbcd3565b1828d0bf288 Mon Sep 17 00:00:00 2001 From: Jason Walton Date: Mon, 7 May 2018 12:09:24 -0400 Subject: [PATCH] fix(typescript): Add generic to `addPromise()`. --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 34d98e1..f1edcf9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -11,7 +11,7 @@ interface PromiseBreakerInstance { break(options: MakeBreakOptions, promiseFn: Function): Function; break(promiseFn: Function): Function; - addPromise(done: Function | undefined | null, asyncFn: Function): Promise | null; + addPromise(done: Function | undefined | null, asyncFn: Function): Promise | void; addCallback( done: Function | undefined | null,