Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/async

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/async - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

29

async/index.d.ts

@@ -234,20 +234,13 @@ // Type definitions for Async 3.2

export interface RetryOptions {
times?: number;
interval?: number | ((retryCount: number) => number);
errorFilter?: (error: Error) => boolean;
}
export function retry<T, E = Error>(
opts?:
| number
| {
times?: number;
interval?: number | ((retryCount: number) => number);
errorFilter?: (error: Error) => boolean;
},
opts?: number | RetryOptions,
task?: (callback: AsyncResultCallback<T, E>, results: any) => void,
): Promise<void>;
export function retry<T, E = Error>(
opts?:
| number
| {
times?: number;
interval?: number | ((retryCount: number) => number);
errorFilter?: (error: Error) => boolean;
},
opts?: number | RetryOptions,
task?: (callback: AsyncResultCallback<T, E>, results: any) => void,

@@ -257,3 +250,9 @@ callback?: AsyncResultCallback<any, E>,

export function retryable<T, E = Error>(opts: number | {times: number, interval: number}, task: AsyncFunction<T, E>): AsyncFunction<T, E>;
export function retryable<T, E = Error>(task: AsyncFunction<T, E>): AsyncFunction<T, E>;
export function retryable<T, E = Error>(
opts:
| number
| RetryOptions & {arity?: number},
task: AsyncFunction<T, E>
): AsyncFunction<T, E>;
export function apply<E = Error>(fn: Function, ...args: any[]): AsyncFunction<any, E>;

@@ -260,0 +259,0 @@ export function nextTick(callback: Function, ...args: any[]): void;

{
"name": "@types/async",
"version": "3.2.1",
"version": "3.2.2",
"description": "TypeScript definitions for Async",

@@ -62,4 +62,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "58ccc56b70520fa2b8b746c864a55a12aa2f4247c1f388d6f1b27400edba83cc",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "a2f3692bf0eb838ba6a9189b79f8008d9a5c51a004ba1267d948feacd9724d6e",
"typeScriptVersion": "2.9"
}

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

### Additional Details
* Last updated: Mon, 27 Apr 2020 16:08:33 GMT
* Last updated: Mon, 11 May 2020 17:28:15 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `async`

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