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
Publisher resources
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
Learning TypeScript
TypeScript has conquered the world of JavaScript: it's one of the world's fastest growing and most …
video
Understanding TypeScript
Most people know TypeScript from Angular 2+. It's the language you must use there, right? It's …
book
Learn React with TypeScript - Second Edition
Take your first step in building modern-day component-based web apps using the latest features and capabilities …
book
TypeScript Cookbook
TypeScript is one of the most important tools for JavaScript developers. Still, even experienced developers wonder …