Fix error type in backoffStrategies interface

change `typeof Error` (resolves to `ErrorConstructor`) to just `Error`.

This allows accessing actual error instance properties (message, etc.)
This commit is contained in:
Daniel Hritzkiv
2018-11-28 12:34:36 -05:00
committed by GitHub
parent 2bc9203ec0
commit 99db723f07
+1 -1
View File
@@ -92,7 +92,7 @@ declare namespace Bull {
* Define a custom backoff strategy
*/
backoffStrategies?: {
[key: string]: (attemptsMade: number, err: typeof Error) => number;
[key: string]: (attemptsMade: number, err: Error) => number;
};
/**