snabbdom / snabbdom

A virtual DOM library with focus on simplicity, modularity, powerful features and performance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript generic type for props

tjenkinson opened this issue · comments

First great lib. We're starting to use it on iPlayer TV and so far it's going well :)

I was wondering if you've thought about using a generic type for props so that type safety is kept there?

Happy to give it a go, but was wondering if this is already missing for a reason. I.e. if someone tried and hit a roadblock it would be good to know.

I have not tried it. Not sure how the ergonomics for the user would play out if one has to carry around the generic argument