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

@types/async-lock

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/async-lock - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21

16

async-lock/index.d.ts
// Type definitions for async-lock
// Project: https://github.com/rain1017/async-lock
// Definitions by: Elisée MAURER <https://github.com/elisee>
// Definitions by: Elisée MAURER <https://github.com/elisee>, Alejandro <https://github.com/afharo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
interface AsyncLockDoneCallback {
(err?: Error, ret?: any): void;
interface AsyncLockDoneCallback<T> {
(err?: Error, ret?: T): void;
}

@@ -21,4 +22,9 @@

acquire(key: string | string[], fn: (done: AsyncLockDoneCallback) => any, cb: AsyncLockDoneCallback, opts?: AsyncLockOptions): void;
acquire(key: string | string[], fn: (done: AsyncLockDoneCallback) => any, opts?: AsyncLockOptions): PromiseLike<any>;
acquire<T>(key: string | string[],
fn: (() => T | PromiseLike<T>) | ((done: AsyncLockDoneCallback<T>) => any),
opts?: AsyncLockOptions): PromiseLike<T>;
acquire<T>(key: string | string[],
fn: (done: AsyncLockDoneCallback<T>) => any,
cb: AsyncLockDoneCallback<T>,
opts?: AsyncLockOptions): void;

@@ -25,0 +31,0 @@ isBusy(): boolean;

{
"name": "@types/async-lock",
"version": "0.0.20",
"version": "0.0.21",
"description": "TypeScript definitions for async-lock",

@@ -9,3 +9,9 @@ "license": "MIT",

"name": "Elisée MAURER",
"url": "https://github.com/elisee"
"url": "https://github.com/elisee",
"githubUsername": "elisee"
},
{
"name": "Alejandro",
"url": "https://github.com/afharo",
"githubUsername": "afharo"
}

@@ -20,4 +26,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "ccdcc3d89c21aadedc45b0574706cf4e037233442327c440abbc072142bf413b",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "477871a50763ffe2a41f9e2f4c0476fbc2a6303a7fb3cd8ed64c31f5a205be9e",
"typeScriptVersion": "2.1"
}

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

Additional Details
* Last updated: Mon, 21 Aug 2017 21:47:08 GMT
* Last updated: Mon, 29 Jan 2018 21:16:13 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Elisée MAURER <https://github.com/elisee>.
These definitions were written by Elisée MAURER <https://github.com/elisee>, Alejandro <https://github.com/afharo>.
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