1.0.4 • Published 6 months ago
@types/lockfile v1.0.4
Installation
npm install --save @types/lockfile
Summary
This package contains type definitions for lockfile (https://github.com/isaacs/lockfile).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lockfile/v0.
index.d.ts
// Type definitions for lockfile 0.4
// Project: https://github.com/isaacs/lockfile
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface Options {
wait?: number | undefined;
stale?: number | undefined;
retries?: number | undefined;
retryWait?: number | undefined;
}
export function lock(path: string, opts: Options, callback: (err: Error) => void): void;
export function lock(path: string, callback: (err: Error) => void): void;
export function lockSync(path: string, opts: Options): void;
export function unlock(path: string, callback: (err: Error) => void): void;
export function unlockSync(path: string): void;
export function check(path: string, opts: Options, callback: (err: Error, isLocked: boolean) => void): void;
export function check(path: string, callback: (err: Error, isLocked: boolean) => void): void;
export function checkSync(path: string, opts: Options): boolean;
Additional Details
- Last updated: Tue, 06 Jul 2021 22:02:44 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Bart van der Schoor.
0.4.32
7 months ago
0.4.33
6 months ago
1.0.4
6 months ago
1.0.3
7 months ago
0.4.31
3 years ago
1.0.2
3 years ago
1.0.1
5 years ago
1.0.0
7 years ago
0.4.30
7 years ago
0.4.29
8 years ago
0.4.28
8 years ago
0.4.27-alpha
8 years ago
0.4.26-alpha
8 years ago
0.4.25-alpha
8 years ago
0.4.24-alpha
8 years ago
0.4.23-alpha
8 years ago
0.4.22-alpha
8 years ago
0.4.21-alpha
8 years ago
0.4.16-alpha
8 years ago
0.4.15-alpha
8 years ago