UNPKG

nodedb-json

Version:

A lightweight JSON-based database for Node.js with TypeScript support, indexing, and complex query capabilities

19 lines (18 loc) 456 B
export interface FileLockOptions { enabled: boolean; lockPath: string; staleLockMs?: number; } export declare class FileLock { private acquired; private readonly lockId; private readonly lockPath; private readonly enabled; private readonly staleLockMs; constructor(options: FileLockOptions); acquire(): void; release(): void; get path(): string; private removeStaleLock; private createLockPayload; }