@node-idempotency/core
Version:
A Race-Condition free Node.js library that ensures idempotency for requests, preventing unintended duplicate operations.
10 lines • 554 B
TypeScript
import type { StorageAdapter } from "@node-idempotency/storage";
import type { IdempotencyOptions, IdempotencyParams } from "./types";
interface MakeIdemPotentOptions {
storage: StorageAdapter;
options?: IdempotencyOptions;
requestBuilder: (...args: any[]) => IdempotencyParams;
}
export declare function MakeIdemPotent({ storage, options, requestBuilder, }: MakeIdemPotentOptions): (_: any, __: string, descriptor: TypedPropertyDescriptor<any>) => TypedPropertyDescriptor<any>;
export {};
//# sourceMappingURL=indempotency.decorator.d.ts.map