1.4.8 • Published 6 months ago

@types/async-retry v1.4.8

Weekly downloads
95,684
License
MIT
Repository
github
Last release
6 months ago

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 { WrapOptions } from 'retry';

declare function AsyncRetry<A>(
    fn: AsyncRetry.RetryFunction<A>,
    opts?: AsyncRetry.Options
): Promise<A>;

declare namespace AsyncRetry {
    interface Options extends WrapOptions {
        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, 26 Apr 2022 19:31:52 GMT
  • Dependencies: @types/retry
  • Global values: none

Credits

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

@radar/chain-watchers-ethereum@tuplo/fletchswash-smart-routernode-backpack.tf@everything-registry/sub-chunk-945@cryptoalgebra/routerpuppeteer-in-electronpuppeteer-in-electron-xpuppeteer-in-electron2propeller-clientquickswap-smart-order-routersls-jestsmart-order-routersmart-order-router-obasesmart-order-router-patchedrip-db-jsqihoo-cliselva-servertgit-apiexelerativeevents-analyticsessequibusdamgithub-fetch-workflow-artifactmolestiaenesciuntmyyyyyyyyyyyyyyyyy-roooooooooooooooooooooooooouter@fortaine/fetchkarasb-routerpanaromaswap_smartorderroutercreate-ak-appcreate-apollo-couchbase-servercreate-gptcreate-monotscreate-keystone-app-master-repo@gbex_chain/smart-order-routerwell-comeetwolkenkit@infinitebrahmanuniverse/nolb-_types_a@jb1011/smart-order-router-old@jthissen/event-store@j0nnyboi/client@genesisprotocol/smart-order-routercreate-templating-clicreate-llama@pgrecki/wolkenkit-eventstore@lifeomic/dynamost@mthang1801/domain-driven-design@mthang1801/library@nixiangyu/smart-order-router@nixiangyu/smart-order-router-01@orbs-network/twap-ui@orchard-insights/crew@paraspace-liquidator/utils@nojsja/puppeteer-in-electron@medlinker/service-core@rip-db/browser@rip-db/node@safecoin/client@s6nougat/smart-order-router@firefly-dex/routing-api@ts-common/virtual-fs@vercel/fetch@slack-wrench/blocks-to-image@techgreedy/singularity-import@tendieswap/routing-api@zeit/dns-cached-resolve@zeit/fetch@waterfor9/smart-order-router-old@agungkes/fetch@shootismoke/ui@emag3m/smart-order-router@stockninja/common@textile/threads-database@affinityproject/wallet-core-sdk@adfinops/common@weav3npm/routing-api@atlantiswap/smart-order-router@aurora-is-near/backstage-plugin-blockchainradar-backend@azure-tools/openapi-tools-common@axah/mq@arque/rabbitmq-connection@chaoswap/smart-order-router
1.4.6

7 months ago

1.4.8

6 months ago

1.4.7

6 months ago

1.4.5

2 years ago

1.4.4

2 years ago

1.4.3

3 years ago

1.4.2

4 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago