✋🏽🛑Stop using any in TypeScript! 👨🏽💻 It’s like writing plain JavaScript. You’re losing the safety net that makes TypeScript worth using. . Level up your code with: • Interfaces & Types: Define the exact shape of your data. • Zod: Validate your data at runtime and infer types automatically. . . #coding #programming

Truth is, whenever you use any, it means you probably don't understand the types well enough.

Like
Reply

Facts. Using any is basically just telling TypeScript to 'trust me, I know what I'm doing,' and we all know how that ends. 💀 Once you get used to Interfaces and Zod, there's no going back! In between, amazing setup senior man

:any is called let my people go. amazing setup

Like
Reply

Great tip! 👏 Avoiding any really helps keep TypeScript safe and predictable. Using interfaces, types, or tools like Zod makes your code more robust and easier to maintain.

Like
Reply

lol i use any cause i'm lazy... 😒

Definitely defeating the purpose of typescript

Like
Reply

Exactly. It defeats the whole point

See more comments

To view or add a comment, sign in

Explore content categories