@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.
14 lines (13 loc) • 519 B
TypeScript
/**
* @module RateLimiter
*/
import { type IRateLimiterAdapter, type IRateLimiterAdapterState } from "../../../../rate-limiter/contracts/_module.js";
/**
* IMPORT_PATH: `"@daiso-tech/core/rate-limiter/no-op-rate-limiter-adapter"`
* @group Adapters
*/
export declare class NoOpRateLimiterAdapter implements IRateLimiterAdapter {
getState(_key: string): Promise<IRateLimiterAdapterState>;
updateState(_key: string, limit: number): Promise<IRateLimiterAdapterState>;
reset(_key: string): Promise<void>;
}