You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a Typescript error in my Webstorm editor when trying to access request, response, and params values of the HttpContext type. Here is my tsconfig.json:
HttpContext properties added by other AdonisJS packages (@adonisjs/auth, for example), do not cause any TS errors/warnings. I've looked over the upgrade guide again, but have been unable to find any steps I may have missed. Is there something that I may be missing to inform the typescript service of these types?
Note, I am not seeing the error when using VS Code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm getting a Typescript error in my Webstorm editor when trying to access
request
,response
, andparams
values of theHttpContext
type. Here is mytsconfig.json
:HttpContext
properties added by other AdonisJS packages (@adonisjs/auth
, for example), do not cause any TS errors/warnings. I've looked over the upgrade guide again, but have been unable to find any steps I may have missed. Is there something that I may be missing to inform the typescript service of these types?Note, I am not seeing the error when using VS Code.
Webstorm:
VS Code:
Beta Was this translation helpful? Give feedback.
All reactions