UNPKG

@node-idempotency/nestjs

Version:

Nestjs Plugin that provides Race-Condition free idempotency for HTTP requests, preventing unintended duplicate operations.

11 lines 556 B
import { type DynamicModule, type OnModuleDestroy } from "@nestjs/common"; import { StorageAdapter } from "@node-idempotency/storage"; import { type RootAsyncRegisterOptions } from "./types"; export declare class NodeIdempotencyModule implements OnModuleDestroy { private readonly storage; constructor(storage: StorageAdapter); onModuleDestroy(): Promise<void>; static forRootAsync(registerOptions: RootAsyncRegisterOptions): Promise<DynamicModule>; private static buildProviders; } //# sourceMappingURL=node-idempotency.module.d.ts.map