Utility function to get params to avoid as
?
#25
kentcdodds
started this conversation in
Ideas
Replies: 2 comments
-
That's a great idea! |
Beta Was this translation helpful? Give feedback.
0 replies
-
What I do in my project is type the loader itself
Then you can type the loader as follows
Can do the same thing with actions as well Of course, this doesn't do any runtime validation but it prevents you having to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Before:
After:
Or something like that. Just so we can avoid the
as
casting :)Beta Was this translation helpful? Give feedback.
All reactions