Hi everyone, I've been focusing on different projects for a few months and I'm surprised at how rusty I've become with TypeScript over this time (not that I ever were particularly good at it). I would like some feedback on the following code just to see if there's perhaps a better way to do it, or if I'm missing something obvious that will come and bit me later on.
Basically it's a component class that gets instantiated via a factory function that accepts a component of type T, as well as some arguments that should match the signature for that particular type. And the component type must be one of the ones that I define earlier. I've manged to put something together that seems to work, but I'm wondering if this is the right approach. I guess is better explained with some code so here's a link to the playground, thank you!
(Removed link see next message below)