Skip to content

Commit f18f4b2

Browse files
authored
Merge pull request #446 from dhensby/fix/types-request-framework-compat
fix(types): accept Express/Koa request types in Request constructor
2 parents 7ff6964 + f6fe167 commit f18f4b2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@ declare namespace OAuth2Server {
5353
*/
5454
class Request {
5555
body?: any;
56-
headers?: Record<string, string>;
56+
headers?: Record<string, any>;
5757
method?: string;
58-
query?: Record<string, string>;
58+
query?: Record<string, any>;
5959

6060
/**
6161
* Instantiates Request using the supplied options.
6262
*
6363
*/
6464
constructor(options: {
65-
headers: Record<string, string>,
65+
headers: Record<string, any>,
6666
method: string,
67-
query: Record<string, string>,
67+
query: Record<string, any>,
6868
body?: any
6969
} & Record<string, any> | http.IncomingMessage);
7070

0 commit comments

Comments
 (0)