From b1409e6b91f5fb08b5489485c8a49dc95d24f525 Mon Sep 17 00:00:00 2001 From: Olek <149747215+Primis1@users.noreply.github.com> Date: Wed, 31 Jul 2024 06:58:12 -0400 Subject: [PATCH] Add content to TS and Zod (#6225) * Update types--validation@UNlvRp6k3_RDoTAAIEfJ1.md Add description for Next.JS Types & Validation node comment: Guys you did help me much in the past, so I'm grateful and think u're cool * Types and Validation, add resources title, rm tautology * rm spaces, create single paragraph article * add change to paragraph * Update src/data/roadmaps/react/content/types--validation@UNlvRp6k3_RDoTAAIEfJ1.md --------- Co-authored-by: Kamran Ahmed --- .../types--validation@UNlvRp6k3_RDoTAAIEfJ1.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/react/content/types--validation@UNlvRp6k3_RDoTAAIEfJ1.md b/src/data/roadmaps/react/content/types--validation@UNlvRp6k3_RDoTAAIEfJ1.md index deca2e57d..c1c9c49ef 100644 --- a/src/data/roadmaps/react/content/types--validation@UNlvRp6k3_RDoTAAIEfJ1.md +++ b/src/data/roadmaps/react/content/types--validation@UNlvRp6k3_RDoTAAIEfJ1.md @@ -1 +1,10 @@ -# Types & Validation \ No newline at end of file +# Types & Validation + +**Typescript** provides a static type system that helps you in avoiding mistakes during the development and provides other features (e.g. IDE support) that help you improve your productivity. + +One thing you should note is that TypeScript can only help you avoid mistakes during the development. We can't rely on it to validate a client's input. **Zod** is a powerful validation library that allows us to validate: form input, local storage, API contracts and much more using their typesafe implementation. + +Visit the following resources to learn more: + +- [@article@What is TypeScript and why would I use it in place of JavaScript?](https://stackoverflow.com/questions/12694530/what-is-typescript-and-why-would-i-use-it-in-place-of-javascript) +- [@article@When Use Zod](https://www.totaltypescript.com/when-should-you-use-zod)