Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
TypeScript 4 Design Patterns and Best Practices

You're reading from  TypeScript 4 Design Patterns and Best Practices

Product type Book
Published in Sep 2021
Publisher Packt
ISBN-13 9781800563421
Pages 350 pages
Edition 1st Edition
Author (1):
 Theofanis Despoudis Theofanis Despoudis
Profile icon Theofanis Despoudis

Table of Contents (14) Chapters

Preface 1. Section 1: Getting Started with TypeScript 4
2. Chapter 1: Getting Started with Typescript 4 3. Chapter 2: TypeScript Core Principles 4. Section 2: Core Design Patterns and Concepts
5. Chapter 3: Creational Design Patterns 6. Chapter 4: Structural Design Patterns 7. Chapter 5: Behavioral Design Patterns 8. Section 3: Advanced Concepts and Best Practices
9. Chapter 6: Functional Programming with TypeScript 10. Chapter 7: Reactive Programming with TypeScript 11. Chapter 8: Developing Modern and Robust TypeScript Applications 12. Chapter 9: Anti-Patterns and Workarounds 13. Other Books You May Enjoy

What this book covers

Chapter 1, Getting Started with TypeScript 4, introduces the TypeScript language, the differences between TypeScript and JavaScript, installing and using the code examples, how to use VSCode with TypeScript, and an introduction to the Unified Modeling Language.

Chapter 2, TypeScript Core Principles, shows how to use advanced types such as utility types, explains classic OOP concepts with TypeScript, explains how to write TypeScript programs in the browser and server environment, and introduces design patterns that you will study in depth in the next chapters.

Chapter 3, Creational Design Patterns, covers the Singleton pattern, the Prototype pattern, the Builder pattern, the Factory pattern, and the Abstract Factory pattern.

Chapter 4, Structural Design Patterns, covers the Adapter pattern, the Decorator pattern, the Façade pattern, the Composite pattern, the Proxy pattern, and the Bridge pattern.

Chapter 5, Behavioral Design Patterns, covers the Chain of Responsibility pattern, the Command pattern, the Mediator pattern, the Observer pattern, the Memento pattern, the State pattern, the Strategy pattern, the Template method pattern, and the Visitor pattern.

Chapter 6, Functional Programming with TypeScript, discusses functional programming concepts, functional lenses, transducers, and monads.

Chapter 7, Reactive Programming with TypeScript, discusses Reactive programming concepts, Futures and Promises, and finally, Observables.

Chapter 8, Developing Modern and Robust TypeScript Applications, describes combining patterns, using utility types, using domain-driven design, and applying SOLID principles.

Chapter 9, Anti-Patterns and Workarounds, discusses class overuse, the dangers of avoiding using runtime assertions, permissive or incorrect types, using idiomatic code from other languages, and type inference gotchas.

lock icon The rest of the chapter is locked
Next Chapter arrow right
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}