Installation
npm install --save @types/proper-lockfile
Summary
This package contains type definitions for proper-lockfile (https://github.com/moxystudio/node-proper-lockfile).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/proper-lockfile.
import { OperationOptions } from "retry";
export interface LockOptions {
stale?: number | undefined;
update?: number | undefined;
retries?: number | OperationOptions | undefined;
realpath?: boolean | undefined;
fs?: any;
onCompromised?: ((err: Error) => any) | undefined;
lockfilePath?: string | undefined;
}
export interface UnlockOptions {
realpath?: boolean | undefined;
fs?: any;
lockfilePath?: string | undefined;
}
export interface CheckOptions {
stale?: number | undefined;
realpath?: boolean | undefined;
fs?: any;
lockfilePath?: string | undefined;
}
export function lock(file: string, options?: LockOptions): Promise<() => Promise<void>>;
export function unlock(file: string, options?: UnlockOptions): Promise<void>;
export function check(file: string, options?: CheckOptions): Promise<boolean>;
export function lockSync(file: string, options?: LockOptions): () => void;
export function unlockSync(file: string, options?: UnlockOptions): void;
export function checkSync(file: string, options?: CheckOptions): boolean;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/retry
Credits
These definitions were written by Nikita Volodin, Linus Unnebäck, and ulrichb.