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 trying to write a plugin that accepts a function that receives the request as a param and it could be nice to have the generic from the route shared to plugins, something like the following:
@lgraziani2712 can you try cloning hapi and testing this? We need to be sure this doesn't break existing typings. Send a PR. I'm for it, but the reqrefdefaults can cause some pain downstream (tricky to type); it already does with pres and ext helpers of sorts.
Runtime
NodeJS
Runtime version
22.7.0
Module version
21.3.10
Used with
hapi application
Any other relevant information
No response
What problem are you trying to solve?
I'm trying to write a plugin that accepts a function that receives the request as a param and it could be nice to have the generic from the route shared to plugins, something like the following:
With that, we could configure plugins like this
I'm interested in writting a PR if y'all accept the idea :)
Do you have a new or modified API suggestion to solve the problem?
No response
The text was updated successfully, but these errors were encountered: