@eristack/idempotency
Version:
Idempotency-Key guard with Drizzle store, scoped keys, lease, Express/Nest/client adapters
12 lines • 454 B
TypeScript
export type IdempotencyClientFetchOptions = {
header?: string;
createKey?: () => string;
fetch?: typeof fetch;
};
/**
* Adds a stable Idempotency-Key header per submit intent (generate once, reuse on retry).
*/
export declare function createIdempotencyClientFetch(options?: IdempotencyClientFetchOptions): (input: string | URL, init?: RequestInit & {
idempotencyKey?: string;
}) => Promise<Response>;
//# sourceMappingURL=index.d.ts.map