Skip to content

Commit 9370727

Browse files
Update index.d.ts
1 parent 6da4d74 commit 9370727

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/index.d.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ export interface HttpResponse {
206206
export interface HttpRequest {
207207
/** Returns the lowercased header value or empty string. */
208208
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;
211211
/** Returns the URL including initial /slash */
212212
getUrl() : string;
213213
/** Returns the lowercased HTTP method, useful for "any" routes. */

0 commit comments

Comments
 (0)