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

TypeScript definitions for async-retry

  • 1.4.3
  • ts3.6
  • ts3.7
  • ts3.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
419K
decreased by-66.77%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/async-retry

Summary

This package contains type definitions for async-retry (https://github.com/zeit/async-retry#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-retry.

index.d.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: Tue, 06 Jul 2021 18:05:36 GMT
  • Dependencies: @types/retry
  • Global values: none

Credits

These definitions were written by Albert Wu, Pablo Rodríguez, and Rafał Sawicki.

FAQs

Package last updated on 06 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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