Seasoned developer with 6+ years experience in crafting high-performance web applications and RESTful APIs. Proficient in Laravel and Node.js, Next.js and React
Seasoned developer with 6+ years experience in crafting high-performance web applications and RESTful APIs. Proficient in Laravel and Node.js, Next.js and React
Thank you for the good article. Maybe I am wrong, but this does not give you type safety inside the controller. If I want to access req.body in the controller, its type is still "any". Sadly you would need to infer the type of the body from your schema.
I am a full stack developer with a passion for software development and open-source contributions. Actively refining skills by collaborating with the global developer
Really useful, thanks!
Thank you @adrielfsantos
This is great, right to the point.
Thanks!!!!
Thank you Vignesh
Very nice!
amazing and simple thx
Thanks
Good one. Very concise
How can i validate the params too? Great article, thanks!
You can try something like this for a validation.middleware.ts:
Thank you for the good article. Maybe I am wrong, but this does not give you type safety inside the controller. If I want to access req.body in the controller, its type is still "any". Sadly you would need to infer the type of the body from your schema.
Nice! thank you :)
Smart 🤓
you implemented it in modular way, thanks!
how to get those parsed-data on the Request object and type-safety?