UNPKG

@nestjs/throttler

Version:

A Rate-Limiting module for NestJS to work on Express, Fastify, Websockets, Socket.IO, and GraphQL, all rolled up into a simple package.

12 lines (11 loc) 553 B
import { Provider } from '@nestjs/common'; import { ThrottlerModuleOptions } from './throttler-module-options.interface'; import { ThrottlerStorage } from './throttler-storage.interface'; export declare function createThrottlerProviders(options: ThrottlerModuleOptions): Provider[]; export declare const ThrottlerStorageProvider: { provide: symbol; useFactory: (options: ThrottlerModuleOptions) => ThrottlerStorage; inject: string[]; }; export declare const getOptionsToken: () => string; export declare const getStorageToken: () => symbol;