Update index.d.ts

This commit is contained in:
uNetworkingAB
2024-08-06 14:31:12 +02:00
committed by GitHub
parent 6da4d74fc0
commit 93707277d3

4
docs/index.d.ts vendored
View File

@@ -206,8 +206,8 @@ export interface HttpResponse {
export interface HttpRequest {
/** Returns the lowercased header value or empty string. */
getHeader(lowerCaseKey: RecognizedString) : string;
/** Returns the parsed parameter at index. Corresponds to route. */
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;
/** Returns the URL including initial /slash */
getUrl() : string;
/** Returns the lowercased HTTP method, useful for "any" routes. */