UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

17 lines (16 loc) 740 B
/** * @module RateLimiter */ import { type IRateLimiterData, type IRateLimiterStorageAdapter, type IRateLimiterStorageAdapterTransaction } from "../../../../rate-limiter/contracts/_module.js"; import { type InvokableFn } from "../../../../utilities/_module.js"; /** * IMPORT_PATH: `"@daiso-tech/core/rate-limiter/no-op-rate-limiter-storage-adapter"` * @group Adapters */ export declare class NoOpRateLimiterStorageAdapter<TType> implements IRateLimiterStorageAdapter<TType> { transaction<TValue>(fn: InvokableFn<[ transaction: IRateLimiterStorageAdapterTransaction<TType> ], Promise<TValue>>): Promise<TValue>; find(_key: string): Promise<IRateLimiterData<TType> | null>; remove(_key: string): Promise<void>; }