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.