Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
666 B
TypeScript
19 lines
666 B
TypeScript
import { ExecutionContext } from '@nestjs/common';
|
|
import { ThrottlerStorageRecord } from './throttler-storage-record.interface';
|
|
import { ThrottlerGenerateKeyFunction, ThrottlerGetTrackerFunction, ThrottlerOptions } from './throttler-module-options.interface';
|
|
export interface ThrottlerLimitDetail extends ThrottlerStorageRecord {
|
|
ttl: number;
|
|
limit: number;
|
|
key: string;
|
|
tracker: string;
|
|
}
|
|
export interface ThrottlerRequest {
|
|
context: ExecutionContext;
|
|
limit: number;
|
|
ttl: number;
|
|
throttler: ThrottlerOptions;
|
|
blockDuration: number;
|
|
getTracker: ThrottlerGetTrackerFunction;
|
|
generateKey: ThrottlerGenerateKeyFunction;
|
|
}
|