UNPKG
rate-limiter-custom
Version:
latest (1.0.7)
1.0.7
1.0.2
1.0.1
1.0.0
A fast, customizable, and efficient rate-limiting middleware for Express in TypeScript.
rate-limiter-custom
/
dist
/
fixedWindow.d.ts
4 lines
(3 loc)
•
284 B
TypeScript
View Raw
1
2
3
4
import
{
Request
,
Response
,
NextFunction
}
from
"express"
;
import
{
RateLimiterOptions
}
from
"./config"
;
export
declare
function
fixedWindowRateLimiter
(
options
:
RateLimiterOptions
):
(
req
:
Request
,
res
:
Response
,
next
:
NextFunction
) =>
Response
<
any
,
Record
<
string
,
any
>> |
undefined
;