Function to wrap function and provide one property of object #13694
Unanswered
code-sanchu
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 have a typescript issue unrelated to these challenges but I was hoping it's okay to ask for help on here.
I want to create a new function from an initial function, with the initial function taking a single object argument and the new function taking the same single object argument apart from populated fields. I've got something like this so far:
The issue here is I get a "could be instantiated with a different subtype of constraint" typescript error within
newFunc
, so I must be doing something wrong.I've also created a stack overflow post of the same issue.
Beta Was this translation helpful? Give feedback.
All reactions