@types/async-retry
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -18,3 +18,3 @@ // Type definitions for async-retry 1.4 | ||
interface Options extends OperationOptions { | ||
onRetry?: (e: Error, attempt: number) => any; | ||
onRetry?: ((e: Error, attempt: number) => any) | undefined; | ||
} | ||
@@ -21,0 +21,0 @@ |
{ | ||
"name": "@types/async-retry", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "TypeScript definitions for async-retry", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-retry", | ||
"license": "MIT", | ||
@@ -34,4 +35,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "2b0a268f3da0f54d1ee6b80b0d610b0e4c02a9c816ba7a3f94bb0a5faae4efe7", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "eba4f91daae8ebedcd195bc6b292c5a625a537d6e4d0626fa35e0ab3bf767cfc", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,33 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-retry. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-retry/index.d.ts) | ||
````ts | ||
// Type definitions for async-retry 1.4 | ||
// Project: https://github.com/zeit/async-retry#readme | ||
// Definitions by: Albert Wu <https://github.com/albertywu> | ||
// Pablo Rodríguez <https://github.com/MeLlamoPablo> | ||
// Rafał Sawicki <https://github.com/rafsawicki> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
import { OperationOptions } from 'retry'; | ||
declare function AsyncRetry<A>( | ||
fn: AsyncRetry.RetryFunction<A>, | ||
opts?: AsyncRetry.Options | ||
): Promise<A>; | ||
declare namespace AsyncRetry { | ||
interface Options extends OperationOptions { | ||
onRetry?: ((e: Error, attempt: number) => any) | undefined; | ||
} | ||
type RetryFunction<A> = (bail: (e: Error) => void, attempt: number) => A|Promise<A>; | ||
} | ||
export = AsyncRetry; | ||
```` | ||
### Additional Details | ||
* Last updated: Fri, 15 May 2020 04:08:47 GMT | ||
* Last updated: Tue, 06 Jul 2021 18:05:36 GMT | ||
* Dependencies: [@types/retry](https://npmjs.com/package/@types/retry) | ||
@@ -14,0 +42,0 @@ * Global values: none |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4702
0
45