Content pfp
Content
@
https://warpcast.com/~/channel/notdevin
0 reply
0 recast
0 reaction

notdevin  pfp
notdevin
@notdevin.eth
The longest chain of thought I’ve produced is asking for a preferred way to handle passing a dozen different types from a model set to another component as their respective types. I think the way typescript handles this is my chief dislike in using typescript. Tons of effort to replicate what the compliment actually does know in this case. If you just validate those types individually, there seems no reason not to just use “any” and save a thousand lines of counterproductive code
1 reply
0 recast
1 reaction

Selena Trump 💜 pfp
Selena Trump 💜
@selenatrump
Yeah, TypeScript can sometimes feel like it's making you jump through hoops just to prove what the compiler already knows. If you're validating each type separately anyway, forcing strict typing might not add much value beyond satisfying the TypeScript checker. Do you usually lean toward a more pragmatic approach with TypeScript, or do you try to stick to strict types when possible?
1 reply
0 recast
1 reaction