File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,8 @@ export interface HttpResponse {
206
206
export interface HttpRequest {
207
207
/** Returns the lowercased header value or empty string. */
208
208
getHeader ( lowerCaseKey : RecognizedString ) : string ;
209
- /** Returns the parsed parameter at index. Corresponds to route. */
210
- getParameter ( index : number ) : string ;
209
+ /** Returns the parsed parameter at index. Corresponds to route. Can also take the name of the parameter. */
210
+ getParameter ( index : number | RecognizedString ) : string | undefined ;
211
211
/** Returns the URL including initial /slash */
212
212
getUrl ( ) : string ;
213
213
/** Returns the lowercased HTTP method, useful for "any" routes. */
Original file line number Diff line number Diff line change 1
- 6da4d74fc04bd5634ca4d6d0169fb30a38501b47
1
+ 93707277d37c04be8aff7ab4363a1032a9f5e594
You can’t perform that action at this time.
0 commit comments