Type Alias RateLimiterFactoryResolverSettings<TAdapters>

RateLimiterFactoryResolverSettings: RateLimiterFactorySettingsBase & {
    adapters: RateLimiterAdapters<TAdapters>;
    defaultAdapter?: NoInfer<TAdapters>;
}

Configuration for RateLimiterFactoryResolver. Registers named rate-limiter adapters and optionally designates a default.

IMPORT_PATH: "@daiso-tech/core/rate-limiter"

Type Parameters

  • TAdapters extends string

Type declaration

  • adapters: RateLimiterAdapters<TAdapters>

    Named registry of rate-limiter adapters. Each key is an adapter alias and the corresponding value is the adapter instance.

  • OptionaldefaultAdapter?: NoInfer<TAdapters>

    The alias of the adapter to use when none is explicitly specified. Must be a key in the adapters map.