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:
parent
4e2cd7e08f
commit
89270b080b
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue