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 1.1.2 to 1.1.3

8

async-lock/index.d.ts

@@ -13,7 +13,7 @@ // Type definitions for async-lock 1.1

interface AsyncLockOptions {
timeout?: number;
maxPending?: number;
domainReentrant?: boolean;
timeout?: number | undefined;
maxPending?: number | undefined;
domainReentrant?: boolean | undefined;
Promise?: any;
skipQueue?: boolean;
skipQueue?: boolean | undefined;
}

@@ -20,0 +20,0 @@

{
"name": "@types/async-lock",
"version": "1.1.2",
"version": "1.1.3",
"description": "TypeScript definitions for async-lock",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-lock",
"license": "MIT",

@@ -37,4 +38,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "a10ede871c5b6eaccdac9edada563ee3d98a1272b7bb832b5be291d223009d8f",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "26500d942714115de222520dc617585e55e6714f9074b834f8eace98397254bf",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,45 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-lock.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-lock/index.d.ts)
````ts
// Type definitions for async-lock 1.1
// Project: https://github.com/rain1017/async-lock, https://github.com/rogierschouten/async-lock
// Definitions by: Elisée MAURER <https://github.com/elisee>
// Alejandro <https://github.com/afharo>
// Anatoly <https://github.com/rhymmor>
// Humulus <https://github.com/humulus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
type AsyncLockDoneCallback<T> = (err?: Error, ret?: T) => void;
interface AsyncLockOptions {
timeout?: number | undefined;
maxPending?: number | undefined;
domainReentrant?: boolean | undefined;
Promise?: any;
skipQueue?: boolean | undefined;
}
declare class AsyncLock {
constructor(options?: AsyncLockOptions);
acquire<T>(key: string | string[],
fn: (() => T | PromiseLike<T>) | ((done: AsyncLockDoneCallback<T>) => any),
opts?: AsyncLockOptions): Promise<T>;
acquire<T>(key: string | string[],
fn: (done: AsyncLockDoneCallback<T>) => any,
cb: AsyncLockDoneCallback<T>,
opts?: AsyncLockOptions): void;
isBusy(key?: string): boolean;
}
declare namespace AsyncLock { }
export = AsyncLock;
````
### Additional Details
* Last updated: Sat, 11 Apr 2020 03:25:32 GMT
* Last updated: Tue, 06 Jul 2021 18:05:36 GMT
* Dependencies: none

@@ -14,0 +54,0 @@ * Global values: none

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