FoalTS / foal

Full-featured Node.js framework 🚀
https://foalts.org/
MIT License
1.9k stars 142 forks source link

Be stricter on some class properties accessors. #1117

Closed LoicPoullain closed 2 years ago

LoicPoullain commented 2 years ago

Issue

Some class properties have should be readonly

Solution and steps

Breaking changes

Context.request, Context.state, HttpResponse.statusCode, HttpResponse.statusMessage, WebsocketContext.socket and WebsocketContext.state are readonly.

Checklist