Can Compose infer types correctly if the innermost function is generic
#250
Unanswered
michael-wolfenden
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to develop a middleware layer for my lambda application. The idea is that I can compose all the middleware together and apply then to my final handler.
The issue if when I apply the middleware to my handler which has closed over the
TResulttype, I lose theTResulttype.Is what I'm trying to achieve possible, or is this a limitation of typescript
Beta Was this translation helpful? Give feedback.
All reactions