From 92e65fbd7f728e91b9a350207c53a0bc0519c6c3 Mon Sep 17 00:00:00 2001 From: Florian Becker Date: Wed, 9 Jul 2025 11:08:01 +0000 Subject: [PATCH] fixed typing for Request constructor --- index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 5b85609..85e6a63 100644 --- a/index.d.ts +++ b/index.d.ts @@ -59,7 +59,12 @@ declare namespace OAuth2Server { * Instantiates Request using the supplied options. * */ - constructor(options?: Record | http.IncomingMessage); + constructor(options: { + headers: Record, + method: string, + query: Record, + body?: any + } & Record | http.IncomingMessage); /** * Returns the specified HTTP header field. The match is case-insensitive.