Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed typing for Request constructor
  • Loading branch information
FlorianB-DE committed Jul 9, 2025
commit 92e65fbd7f728e91b9a350207c53a0bc0519c6c3
7 changes: 6 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ declare namespace OAuth2Server {
* Instantiates Request using the supplied options.
*
*/
constructor(options?: Record<string, any> | http.IncomingMessage);
constructor(options: {
headers: Record<string, string>,
method: string,
query: Record<string, string>,
body?: any
} & Record<string, any> | http.IncomingMessage);

/**
* Returns the specified HTTP header field. The match is case-insensitive.
Expand Down