Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
variable rateLimit
import { rateLimit } from "https://deno.land/x/gamla@91.0.0/src/index.ts";

type

<Function extends AsyncFunction>(
maxCalls: number,
maxWeight: number,
timeWindowMs: number,
weight: (...args: Parameters<Function>) => number,
f: Function,
) => Function