Skip to content

Commit 92e65fb

Browse files
committed
fixed typing for Request constructor
1 parent cd81a3a commit 92e65fb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ declare namespace OAuth2Server {
5959
* Instantiates Request using the supplied options.
6060
*
6161
*/
62-
constructor(options?: Record<string, any> | http.IncomingMessage);
62+
constructor(options: {
63+
headers: Record<string, string>,
64+
method: string,
65+
query: Record<string, string>,
66+
body?: any
67+
} & Record<string, any> | http.IncomingMessage);
6368

6469
/**
6570
* Returns the specified HTTP header field. The match is case-insensitive.

0 commit comments

Comments
 (0)