-
Book Overview & Buying
-
Table Of Contents
Clean Code with TypeScript
By :
This chapter has equipped you with essential skills for effective TypeScript development. You've learned about the rationale for using TypeScript, including its benefits and usage scenarios. We covered the practical setup process, including installation and basic project configuration. The chapter delved into foundational types, helping you master working with strings, numbers, Booleans, and the any type. You explored working with complex types such as arrays, tuples, and enums. Additionally, the chapter introduced advanced concepts such as union/intersection types, aliases/interfaces, generics, and conditional types. As a bonus, we briefly touched on tsconfig.json configuration and best practices.
The next chapter focuses on writing clean and maintainable functions in TypeScript. You'll delve into the Single Responsibility Principle (SRP), function signatures, parameter types, return types, optional and default parameters, and best practices for function naming and documentation using JSDoc and TypeScript. This chapter will further enhance your TypeScript proficiency, empowering you to produce high-quality code with clarity and ease.
Scan the QR code (or go to packtpub.com/unlock). Search for this book by name, confirm the edition, and then follow the steps on the page.


Note: Have your invoice handy. Purchases made directly from the Packt website don't require an invoice.