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

Commit d324731

Browse files
committed
Small BC QueryParams, ParsedBody
1 parent e19aafe commit d324731

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/psr-http-message@1.0.3
21+
npm i @chubbyjs/psr-http-message@1.1.0
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.0.3",
3+
"version": "1.1.0",
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
@@ -1,7 +1,7 @@
11
import RequestInterface from './RequestInterface';
22

3-
export type QueryParams = Map<string, QueryParams> | Array<QueryParams> | string;
4-
export type ParsedBody = Map<string, ParsedBody> | Array<ParsedBody> | string | number | boolean | null;
3+
export type QueryParams = { [key: string]: QueryParams } | Array<QueryParams> | string;
4+
export type ParsedBody = { [key: string]: ParsedBody } | Array<ParsedBody> | string | number | boolean | null;
55

66
interface ServerRequestInterface extends RequestInterface {
77
getCookieParams(): Map<string, string>;

0 commit comments

Comments
 (0)