i-like-robots / react-tag-autocomplete

⚛️ A simple, accessible, tagging component ready to drop into your React projects (new repo)
https://i-like-robots.github.io/react-tag-autocomplete/
ISC License
178 stars 12 forks source link

[DO NOT MERGE] extend Tag for TagSuggestion, TagOption... #20

Closed tarngerine closed 1 year ago

tarngerine commented 2 years ago

Just pushing this up as an example for #13 — IT IS NOT DONE. the generic type T is becoming never and unfortunately I haven't figured out why.

tarngerine commented 2 years ago

I am not a TS expert so I wonder if I'm doing something fundamentally wrong here, but applying <T extends Tag> everywhere kind of sucks :( and makes this never issue hard to triangulate

image