@types/promise-retry
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -17,3 +17,3 @@ // Type definitions for promise-retry 1.1 | ||
*/ | ||
type RetryableFn = ((retry: (error: any) => never, attempt: number) => Promise<any>); | ||
type RetryableFn<ResolutionType> = ((retry: (error: any) => never, attempt: number) => Promise<ResolutionType>); | ||
/** | ||
@@ -26,4 +26,4 @@ * Wrap all functions of the object with retry. The params can be entered in either order, just like in the original library. | ||
*/ | ||
declare function promiseRetry(retryableFn: RetryableFn, options?: WrapOptions): Promise<any>; | ||
declare function promiseRetry(options: WrapOptions, retryableFn: RetryableFn): Promise<any>; | ||
declare function promiseRetry<ResolutionType>(retryableFn: RetryableFn<ResolutionType>, options?: WrapOptions): Promise<ResolutionType>; | ||
declare function promiseRetry<ResolutionType>(options: WrapOptions, retryableFn: RetryableFn<ResolutionType>): Promise<ResolutionType>; | ||
export = promiseRetry; |
{ | ||
"name": "@types/promise-retry", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "TypeScript definitions for promise-retry", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
@@ -23,4 +23,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "6c392ad2570d042be9ca170df97f31b8cff9705f9500e63a6b62c222b0df7c12", | ||
"typesPublisherContentHash": "15d6f2992c313c3451da1f57f703e43b078bd3cea47bea829858396789a6d531", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-retry | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-retry | ||
Additional Details | ||
* Last updated: Thu, 09 Nov 2017 22:14:16 GMT | ||
* Last updated: Thu, 31 May 2018 20:09:03 GMT | ||
* Dependencies: retry | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3972