mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
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:
Vendored
+1
-1
@@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user