Skip to content

Commit

Permalink
fix #917 getQuery(key) typings (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
techvlad authored Aug 13, 2023
1 parent f2c021f commit ecd89ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export interface HttpRequest {
getCaseSensitiveMethod() : string;
/** Returns the raw querystring (the part of URL after ? sign) or empty string. */
getQuery() : string;
/** Returns a decoded query parameter value or empty string. */
getQuery(key: string) : string;
/** Returns a decoded query parameter value or undefined. */
getQuery(key: string) : string | undefined;
/** Loops over all headers. */
forEach(cb: (key: string, value: string) => void) : void;
/** Setting yield to true is to say that this route handler did not handle the route, causing the router to continue looking for a matching route handler, or fail. */
Expand Down

0 comments on commit ecd89ce

Please sign in to comment.