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

1.2.3 • Public • Published

Installation

npm install --save @types/mutexify

Summary

This package contains type definitions for mutexify (https://github.com/mafintosh/mutexify).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mutexify.

index.d.ts

interface Lock {
    (fn: Release): number;
    locked: boolean;
}

type Release = (
    cb: (err?: any, value?: any) => any,
    err: any,
    value: any,
) => void;

declare function mutexify(): Lock;

export = mutexify;
export as namespace mutexify;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Gustav Bylund.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/mutexify

Weekly Downloads

507

Version

1.2.3

License

MIT

Unpacked Size

3.03 kB

Total Files

5

Last publish

Collaborators

  • types