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.
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: Wed, 18 Oct 2023 05:47:07 GMT
- Dependencies: none
Credits
These definitions were written by Bart van der Schoor.