Skip to content
This repository was archived by the owner on Jul 10, 2022. It is now read-only.

Commit b3eba29

Browse files
committed
query params on top level is always an object
1 parent d324731 commit b3eba29

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This are the differences to the PHP version:
1818
Through [NPM](https://www.npmjs.com) as [@chubbyjs/psr-http-message][1].
1919

2020
```sh
21-
npm i @chubbyjs/[email protected].0
21+
npm i @chubbyjs/[email protected].1
2222
```
2323

2424
## Copyright

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@chubbyjs/psr-http-message",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Common Http-message Interface (PHP FIG PSR-7).",
55
"keywords": [
66
"psr",

src/ServerRequestInterface.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export type ParsedBody = { [key: string]: ParsedBody } | Array<ParsedBody> | str
66
interface ServerRequestInterface extends RequestInterface {
77
getCookieParams(): Map<string, string>;
88
withCookieParams(cookieParams: Map<string, string>): this;
9-
getQueryParams(): QueryParams;
10-
withQueryParams(queryParams: QueryParams): this;
9+
getQueryParams(): { [key: string]: QueryParams };
10+
withQueryParams(queryParams: { [key: string]: QueryParams }): this;
1111
getParsedBody(): ParsedBody | undefined;
1212
withParsedBody(parsedBody: ParsedBody | undefined): this;
1313
getAttributes(): Map<string, unknown>;

0 commit comments

Comments
 (0)