Updated Options -> message type

Updated Options -> message type to mirror express typings, ran into this issue when trying to use an object as the message value.
This commit is contained in:
Duran
2018-12-24 11:22:54 -05:00
committed by GitHub
parent 42e3741a35
commit 5e2561e52e
+1 -1
View File
@@ -22,7 +22,7 @@ declare namespace RateLimit {
headers?: boolean;
keyGenerator?(req: express.Request, res: express.Response): string;
max?: number;
message?: string;
message?: string | Buffer | Object;
skip?(req: express.Request, res: express.Response): boolean;
skipFailedRequests?: boolean;
statusCode?: number;