Gathering detailed insights and metrics for @types/promise-retry
Gathering detailed insights and metrics for @types/promise-retry
Gathering detailed insights and metrics for @types/promise-retry
Gathering detailed insights and metrics for @types/promise-retry
@types/promise-fn-retry
TypeScript definitions for promise-fn-retry
@types/retry-as-promised
Stub TypeScript definitions entry for retry-as-promised, which provides its own types definitions
@andranik-arakelyan/js-utilities
Javascript utilities
@mrflish/retry
A typesafe promise based retry pattern
The repository for high quality TypeScript type definitions.
npm install @types/promise-retry
Typescript
Module System
99.8
Supply Chain
74.3
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,053 Stars
89,753 Commits
30,431 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 17, 2025
Latest Version
1.1.6
Package Id
@types/promise-retry@1.1.6
Unpacked Size
5.32 kB
Size
2.09 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
npm install --save @types/promise-retry
This package contains type definitions for promise-retry (https://github.com/IndigoUnited/node-promise-retry).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promise-retry.
1import { OperationOptions } from "retry"; 2/** 3 * A function that is retryable, by having implicitly-bound params for both an error handler and an attempt number. 4 * 5 * @param retry The retry callback upon any rejection. Essentially throws the error on in the form of a { retried: err } 6 * wrapper, and tags it with a 'code' field of value "EPROMISERETRY" so that it is recognised as needing retrying. Call 7 * this from the catch() block when you want to retry a rejected attempt. 8 * @param attempt The number of the attempt. 9 * @returns A Promise for anything (eg. a HTTP response). 10 */ 11type RetryableFn<ResolutionType> = (retry: (error: any) => never, attempt: number) => Promise<ResolutionType>; 12/** 13 * Wrap all functions of the object with retry. The params can be entered in either order, just like in the original library. 14 * 15 * @param retryableFn The function to retry. 16 * @param options The options for how long/often to retry the function for. 17 * @returns The Promise resolved by the input retryableFn, or rejected (if not retried) from its catch block. 18 */ 19declare function promiseRetry<ResolutionType>( 20 retryableFn: RetryableFn<ResolutionType>, 21 options?: OperationOptions, 22): Promise<ResolutionType>; 23declare function promiseRetry<ResolutionType>( 24 options: OperationOptions, 25 retryableFn: RetryableFn<ResolutionType>, 26): Promise<ResolutionType>; 27export = promiseRetry; 28
These definitions were written by Jamie Birch.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More