✋🏽🛑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
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
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.
lol i use any cause i'm lazy... 😒
Definitely defeating the purpose of typescript
Exactly. It defeats the whole point
Why 🫠
Nice setup
Truth is, whenever you use any, it means you probably don't understand the types well enough.