fix: review findings

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-11-26 14:33:30 +02:00
committed by Hellgren Heikki
parent 279c15cb5d
commit d6bd7a540d
9 changed files with 83 additions and 63 deletions
+4 -4
View File
@@ -791,10 +791,10 @@ export interface Config {
};
/**
* Rate limiting options
* Rate limiting options. Defining this as `true` will enable rate limiting with default values.
*/
rateLimit?:
| false
| true
| {
store?:
| {
@@ -806,9 +806,9 @@ export interface Config {
};
/**
* Time frame in milliseconds or as human duration for which requests are checked/remembered.
* Defaults to 6000ms.
* Defaults to one minute.
*/
window?: number | HumanDuration;
window?: string | HumanDuration;
/**
* The maximum number of connections to allow during the `window` before rate limiting the client.
* Defaults to 5.