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
Types of parameters 'req' and 'request' are incompatible.
Type 'Q' is not assignable to type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'
This type parameter might need an `extends e.Request<ParamsDictionary, any, any, QueryString.ParsedQs, Record<string, any>>` constraint.
Expected behavior
I expect the skip method to work without TS error or even better to have a different signature for example like this without the use of generics
One an unrelated note, it would be really nice if the express middleware exports the types as well so we don't have to install @promster/types to get typing for TMiddlewareOptions 😅
The text was updated successfully, but these errors were encountered:
Describe the bug
skip
inTMiddlewareOptions
requires 2 genericQ
andS
that can't be extended withRequest
andResponse
fromexpress
.I might be using it wrong, a helpful usage example would be greatly appreciated 🙏
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the
skip
method to work without TS error or even better to have a different signature for example like this without the use of genericsAdditional context
Versions installed
One an unrelated note, it would be really nice if the
express
middleware exports the types as well so we don't have to install@promster/types
to get typing forTMiddlewareOptions
😅The text was updated successfully, but these errors were encountered: