Having issues with properly typing a higher-order component
I have a, seemingly, simple HOC that adds styles to a
solid-element
component:
example usage being
The issue is that I completely lose the prop types this way, somehow. It always ends up as unknown
, so I have to resort to typing customElement<Props>(...)
explicitly.
Any way to set it up properly?
0 Replies