There was an error while loading. Please reload this page.
1 parent 6da4d74 commit 9370727Copy full SHA for 9370727
1 file changed
docs/index.d.ts
@@ -206,8 +206,8 @@ export interface HttpResponse {
206
export interface HttpRequest {
207
/** Returns the lowercased header value or empty string. */
208
getHeader(lowerCaseKey: RecognizedString) : string;
209
- /** Returns the parsed parameter at index. Corresponds to route. */
210
- getParameter(index: number) : string;
+ /** Returns the parsed parameter at index. Corresponds to route. Can also take the name of the parameter. */
+ getParameter(index: number | RecognizedString) : string | undefined;
211
/** Returns the URL including initial /slash */
212
getUrl() : string;
213
/** Returns the lowercased HTTP method, useful for "any" routes. */
0 commit comments