Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/async-retry

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/async-retry - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

2

async-retry/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc