Socket
Socket
Sign inDemoInstall

@types/async-retry

Package Overview
Dependencies
Maintainers
1
Versions
13
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.1.0 to 1.2.0

28

async-retry/index.d.ts

@@ -1,17 +0,25 @@

// Type definitions for async-retry 1.1
// Type definitions for async-retry 1.2
// Project: https://github.com/zeit/async-retry#readme
// Definitions by: Albert Wu <https://github.com/albertywu>
// Pablo Rodríguez <https://github.com/MeLlamoPablo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function retry<A>(fn: RetryFunction<A>, opts: Options): Promise<A>;
declare function AsyncRetry<A>(
fn: AsyncRetry.RetryFunction<A>,
opts: AsyncRetry.Options
): Promise<A>;
export interface Options {
retries?: number;
factor?: number;
minTimeout?: number;
maxTimeout?: number;
randomize?: boolean;
onRetry?: (e: Error) => any;
declare namespace AsyncRetry {
interface Options {
retries?: number;
factor?: number;
minTimeout?: number;
maxTimeout?: number;
randomize?: boolean;
onRetry?: (e: Error) => any;
}
type RetryFunction<A> = (bail: (e: Error) => A, attempt: number) => A|Promise<A>;
}
export type RetryFunction<A> = (bail: (e: Error) => A, attempt: number) => A|Promise<A>;
export = AsyncRetry;
{
"name": "@types/async-retry",
"version": "1.1.0",
"version": "1.2.0",
"description": "TypeScript definitions for async-retry",

@@ -11,2 +11,7 @@ "license": "MIT",

"githubUsername": "albertywu"
},
{
"name": "Pablo Rodríguez",
"url": "https://github.com/MeLlamoPablo",
"githubUsername": "MeLlamoPablo"
}

@@ -21,4 +26,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "7e681d7ef6a77b49e8c73cc66ddc6aa266fd358ce65aec302c824799b37bd774",
"typesPublisherContentHash": "17de25f40211474349e492e7f80198fda1778423d3e89d806e28a036bcf519ae",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 25 Jan 2018 17:59:35 GMT
* Last updated: Mon, 02 Apr 2018 15:15:50 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Albert Wu <https://github.com/albertywu>.
These definitions were written by Albert Wu <https://github.com/albertywu>, Pablo Rodríguez <https://github.com/MeLlamoPablo>.

Sorry, the diff of this file is not supported yet

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