UNPKG

syncguard

Version:

Functional TypeScript library for distributed locking across microservices. Prevents race conditions with Redis, Firestore, and custom backends. Features automatic lock management, timeout handling, and extensible architecture.

8 lines (7 loc) 361 B
/** * D-Lock - Distributed Lock Library * * Core exports for custom backend implementations */ export type { LockBackend, LockConfig, LockErrorCode, LockFunction, LockResult, MergedLockConfig, } from "./common/backend.js"; export { DEFAULT_CONFIG, LockError, LockErrorCodes, createLock, delay, generateLockId, mergeLockConfig, } from "./common/backend.js";