UNPKG

syncguard

Version:

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

10 lines (9 loc) 405 B
import type { PostgresBackendOptions, PostgresConfig } from "./types.js"; /** * Creates and validates PostgreSQL backend configuration. * * @param options - User-provided configuration options * @returns Validated configuration with defaults applied * @throws {LockError} If configuration is invalid */ export declare function createPostgresConfig(options?: PostgresBackendOptions): PostgresConfig;