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
-
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
TResult
type, I lose theTResult
type.Is what I'm trying to achieve possible, or is this a limitation of typescript
Beta Was this translation helpful? Give feedback.
All reactions