1
0
Fork 0
mirror of https://github.com/sbrl/powahroot.git synced 2025-04-25 15:24:54 +00:00

docs/RouterContext: fix type of RouterContext.env

This commit is contained in:
Starbeamrainbowlabs 2025-03-12 15:48:47 +00:00
parent 4e2cd7e08f
commit 89270b080b
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 1 deletions

View file

@ -17,6 +17,7 @@ npm install --save powahroot
## v1.3.0 (unreleased)
- Sender: Append `; charset=utf-8` to `content-type` when sending plain / html responses
- Fix type of `RouterContext.env` to be `RequestEnvironment` and not `Object`
## v1.2.12

View file

@ -59,7 +59,7 @@ class RouterContext {
* The environment object.
* State variables that need to be attached to a specific request can
* go in here.
* @type {Object}
* @type {RequestEnvironment}
*/
this.env = new RequestEnvironment(this.request);
}