@node-idempotency/core
Version:
A Race-Condition free Node.js library that ensures idempotency for requests, preventing unintended duplicate operations.
12 lines • 548 B
TypeScript
export declare enum IdempotencyErrorCodes {
IDEMPOTENCY_KEY_LEN_EXEEDED = "IDEMPOTENCY_KEY_LEN_EXEEDED",
IDEMPOTENCY_KEY_MISSING = "IDEMPOTENCY_KEY_MISSING",
IDEMPOTENCY_FINGERPRINT_MISSMATCH = "IDEMPOTENCY_FINGERPRINT_MISSMATCH",
REQUEST_IN_PROGRESS = "REQUEST_IN_PROGRESS"
}
export declare class IdempotencyError extends Error {
code: IdempotencyErrorCodes;
meta?: Record<string, unknown>;
constructor(message: string, code: IdempotencyErrorCodes, meta?: Record<string, unknown>);
}
//# sourceMappingURL=error.d.ts.map