Nutrias Punching Marmots

    @types/async-retry
    TypeScript icon, indicating that this package has built-in type declarations

    1.4.4 • Public • Published

    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.

    Keywords

    none

    Install

    npm i @types/async-retry

    DownloadsWeekly Downloads

    288,916

    Version

    1.4.4

    License

    MIT

    Unpacked Size

    4.68 kB

    Total Files

    4

    Last publish

    Collaborators

    • types