Type-Safe API Fetching in Next.js Server Components
Why Avoid any?
When you explicitly cast an object as any, you are telling the TypeScript compiler to shut down type-checking for that entire variable branch.
TypeScript
// The Dangerous Way
const user
devabutaher.hashnode.dev2 min read