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
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
Learning React, 2nd Edition
If you want to learn how to build efficient React applications, this is your book. Ideal …