Learning TypeScript 2.x, 2nd Edition
- Length: 437 pages
- Edition: 2nd Revised edition
- Language: English
- Publisher: Packt Publishing
- Publication Date: 2018-05-09
- ISBN-10: 1788391470
- ISBN-13: 9781788391474
- Sales Rank: #263117 (See Top 100 Books)
Key Features
- Learn how to develop modular, scalable, maintainable, and adaptable web applications by taking advantage of TypeScript
- A comprehensive guide that explains the fundamentals of TypeScript with the help of practical examples
- Enhance your web development skills and accelerate your development using TypeScript 2.x
Book Description
TypeScript is an open source and cross-platform typed superset of JavaScript that compiles to plain JavaScript that runs in any browser or any host. TypeScript adds optional static types, classes, and modules to JavaScript, to enable great tooling and better structuring of large JavaScript applications.
This book is a step-by-step guide that will get you started with TypeScript with the help of practical examples. You start off by understanding the basics and the new features of TypeScript 2.x. Next, you will learn to automate your development workflow with tools such as Grunt. Following this, you will be explained in detail about function, generics, and callbacks. Post this, object-oriented features and the memory management functionality of TypeScript are explained in detail. Going forward, you will be introduced to Functional Programming with TypeScript and will delve into Asynchronous programming principles. Finally, you will be introduced to the performance parameters and will learn to test your application.
By the end of this book, you will have learned enough to implement all the concepts with the latest features of TypeScript to build a single page application from scratch.
What you will learn
- Learn the key TypeScript language features and language runtime
- Develop modular, scalable, maintainable, and adaptable web applications
- Create object-oriented code that adheres to the solid principles
- Save time using automation tools like Gulp, Webpack, Ts node and Karma
- Develop robust applications with testing (Mocha, Chai and SinonJS)
- Put your TypeScript skills into practice by developing a single-page web application framework from scratch
- Use the JavaScript of tomorrow (ES6 and ES7) today with TypeScript
Table of Contents
Chapter 1. Introducing TypeScript
Chapter 2. Working with Types
Chapter 3. Working with Functions
Chapter 4. Object-Oriented Programming with TypeScript
Chapter 5. Working with Dependencies
Chapter 6. Understanding the Runtime
Chapter 7. Functional Programming with TypeScript
Chapter 8. Working with Decorators
Chapter 9. Automating Your Development Workflow
Chapter 10. Node.js Development with TypeScript
Chapter 11. Frontend Development with React and TypeScript
Chapter 12. Frontend Development with Angular and TypeScript
Chapter 13. Application Performance
Chapter 14. Application Testing
Chapter 15. Working with the TypeScript Compiler and the Language Services