Book description
Any programmer working with a dynamically typed language will tell you how hard it is to scale to more lines of code and more engineers. That’s why Facebook, Google, and Microsoft invented gradual static type layers for their dynamically typed JavaScript and Python code. This practical book shows you how one such type layer, TypeScript, is unique among them: it makes programming fun with its powerful static type system.
If you’re a programmer with intermediate JavaScript experience, author Boris Cherny will teach you how to master the TypeScript language. You’ll understand how TypeScript can help you eliminate bugs in your code and enable you to scale your code across more engineers than you could before.
In this book, you’ll:
- Start with the basics: Learn about TypeScript’s different types and type operators, including what they’re for and how they’re used
- Explore advanced topics: Understand TypeScript’s sophisticated type system, including how to safely handle errors and build asynchronous programs
- Dive in hands-on: Use TypeScript with your favorite frontend and backend frameworks, migrate your existing JavaScript project to TypeScript, and run your TypeScript application in production
Table of contents
- Preface
- 1. Introduction
- 2. TypeScript: A 10_000 Foot View
- 3. All About Types
- 4. Functions
- 5. Classes and Interfaces
- 6. Advanced Types
- 7. Handling Errors
- 8. Asynchronous Programming, Concurrency, and Parallelism
- 9. Frontend and Backend Frameworks
- 10. Namespaces.Modules
- 11. Interoperating with JavaScript
- 12. Building and Running TypeScript
- 13. Conclusion
- A. Type Operators
- B. Type Utilities
- C. Scoped Declarations
- D. Recipes for Writing Declaration Files for Third-Party JavaScript Modules
- E. Triple-Slash Directives
- F. TSC Compiler Flags for Safety
- G. TSX
- Index
Product information
- Title: Programming TypeScript
- Author(s):
- Release date: May 2019
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492037651
You might also like
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Generative Deep Learning, 2nd Edition
Generative AI is the hottest topic in tech. This practical book teaches machine learning engineers and …
book
Effective Java, 3rd Edition
Since this Jolt-award winning classic was last updated in 2008, the Java programming environment has changed …
book
Database Internals
When it comes to choosing, using, and maintaining a database, understanding its internals is essential. But …