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
Hello I am having trouble typing a test case for a pull request I am preparing:
I want to reuse the this Component as a property for render in a withForm higher Order Component and I am struggling to type the form property correctly. Looking through the code it is not obvious how to instantiate this type without passing a dozen generics.
Am I missing something? I think I could create such a helper but I am not sure this something that could be useful and would like some feedback before I tackle this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello I am having trouble typing a test case for a pull request I am preparing:
I want to reuse the this Component as a property for render in a withForm higher Order Component and I am struggling to type the form property correctly. Looking through the code it is not obvious how to instantiate this type without passing a dozen generics.
What I would love is something like this
Am I missing something? I think I could create such a helper but I am not sure this something that could be useful and would like some feedback before I tackle this.
Beta Was this translation helpful? Give feedback.
All reactions