Docs
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference

throttlerOptions

Function: throttlerOptions()

ts
function throttlerOptions<TFn, TOptions>(options): TOptions;
function throttlerOptions<TFn, TOptions>(options): TOptions;

Defined in: throttler.ts:95

Utility function for sharing common ThrottlerOptions options between different Throttler instances.

Type Parameters

TFn

TFn extends AnyFunction = AnyFunction

TOptions

TOptions extends Partial<ThrottlerOptions<TFn>> = Partial<ThrottlerOptions<TFn>>

Parameters

options

TOptions

Returns

TOptions