
Why frontend is a pain in the *ss
1020
16________
For all you developer keyboard warriors out there, you may have noticed that I'm strongly typing the return type on my data fetching functions.
In the past I've used implicit (inferred) types for the return type of my function since I believe that's more reliable
But I need a return type anyways (right...?) since I need to declare the types for my useState value so at some point I need to make an explicit type override to tell TS what my type looks like. But the data could change causing runtime errors right?
Idk dude this is why it's hard
Edit: I tried doing this for my complex contact/opportunity query but the inferred type was just any[] so f*ck that
コメント