Replies: 1 comment 1 reply
-
Our list of generics is getting quite long. We want to provide the best-in-class TS experience but it might require taking some other approach that we need to figure out first. This, among other things, is very much on our minds. It just won't happen overnight. Stay tuned though! This year will bring a lot of new exciting stuff. 🚀 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The tags feature is really nice and makes it easier to match for multiple states. However it's currently not possible to provide TypeScript typings for which tags are valid, which is a shame. I recently refactored some tags code and didn't change all parts, because TypeScript didn't warn me about invalid tag lookups and creatings.
From a user perspective I imagine something like this:
I don't know how this would be implemented, but I would at least suggest that tags default to the
string
type so developers don't have to type it explicitly if they don't want to.Beta Was this translation helpful? Give feedback.
All reactions