Skip to content

Property 'rateLimit' does not exist on type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' #454

Answered by gamemaker1
SaidiAli asked this question in Q&A
Discussion options

You must be logged in to vote

The reset time is set by the middleware itself, you don't need to set it yourself.

You can access it in all requests handlers registered after the rate limiter using req.rateLimit.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@SaidiAli
Comment options

Comment options

You must be logged in to vote
3 replies
@gamemaker1
Comment options

Answer selected by SaidiAli
@nfriedly
Comment options

@SaidiAli
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants