UNPKG

@feflow/cli

Version:
18 lines 578 B
import { Logger } from '../core/logger'; export default class LockFile { private readonly filePath; private readonly lockKey; private logger; private readonly tryMax; private readonly tryGap; private tryCount; constructor(filePath: string, lockKey: string, logger: Logger); read(key?: string): Promise<JSONValue>; update(key: string, value: JSONValue): Promise<object | undefined>; private resetFile; private checkIfCanRead; private lock; private unlock; private ensureFileExists; } //# sourceMappingURL=lock-file.d.ts.map