@@ -51,15 +51,15 @@ declare namespace OAuth2Server {
51
51
*/
52
52
class Request {
53
53
body ?: any ;
54
- headers ?: { [ key : string ] : string ; } ;
54
+ headers ?: Record < string , string > ;
55
55
method ?: string ;
56
- query ?: { [ key : string ] : string ; } ;
56
+ query ?: Record < string , string > ;
57
57
58
58
/**
59
59
* Instantiates Request using the supplied options.
60
60
*
61
61
*/
62
- constructor ( options ?: { [ key : string ] : any } | http . IncomingMessage ) ;
62
+ constructor ( options ?: Record < string , any > | http . IncomingMessage ) ;
63
63
64
64
/**
65
65
* Returns the specified HTTP header field. The match is case-insensitive.
@@ -79,14 +79,14 @@ declare namespace OAuth2Server {
79
79
*/
80
80
class Response {
81
81
body ?: any ;
82
- headers ?: { [ key : string ] : string ; } ;
82
+ headers ?: Record < string , string > ;
83
83
status ?: number ;
84
84
85
85
/**
86
86
* Instantiates Response using the supplied options.
87
87
*
88
88
*/
89
- constructor ( options ?: { [ key : string ] : any ; } | http . ServerResponse ) ;
89
+ constructor ( options ?: Record < string , any > | http . ServerResponse ) ;
90
90
91
91
/**
92
92
* Returns the specified HTTP header field. The match is case-insensitive.
@@ -232,7 +232,7 @@ declare namespace OAuth2Server {
232
232
/**
233
233
* Additional supported grant types.
234
234
*/
235
- extendedGrantTypes ?: { [ key : string ] : typeof AbstractGrantType } ;
235
+ extendedGrantTypes ?: Record < string , typeof AbstractGrantType > ;
236
236
}
237
237
238
238
/**
0 commit comments