Skip to content

Commit 9ad4cd5

Browse files
authored
Merge pull request #362 from FlorianB-DE/master
fixed typing for Request constructor
2 parents cd81a3a + 92e65fb commit 9ad4cd5

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)