Mastering Typescript 3 - Third Edition
內容描述
Key Features
Learn the key features of TypeScript 3 and explore advanced language features through in-depth discussions.
Use TypeScript with modern frameworks including Backbone, Angular, Aurelia, React, and Node.
Explore TDD practices, OOP techniques, and industry best practices to create high-quality, modular, and adaptable applications.
Book Description
TypeScript is both a language and a set of tools to generate JavaScript. It was designed by Anders Hejlsberg at Microsoft to help developers write enterprise-scale JavaScript.
Starting with an introduction to the TypeScript language, before moving on to basic concepts, each section builds on previous knowledge in an incremental and easy-to-understand way. Advanced and powerful language features are all covered, including asynchronous programming techniques, decorators, and generics.
This book explores many modern JavaScript and TypeScript frameworks side by side in order for the reader to learn their respective strengths and weaknesses. It will also thoroughly explore unit and integration testing for each framework.
Best-of-breed applications utilize well-known design patterns in order to be scalable, maintainable, and testable. This book explores some of these object-oriented techniques and patterns, and shows real-world implementations.
By the end of the book, you will have built a comprehensive, end-to-end web application to show how TypeScript language features, design patterns, and industry best practices can be brought together in a real-world scenario.
What you will learn
Gain insights into core and advanced TypeScript language features
Integrate existing JavaScript libraries and third-party frameworks using declaration files
Target popular JavaScript frameworks, such as Angular, React, and more
Create test suites for your application with Jasmine and Selenium
Organize your application code using modules, AMD loaders, and SystemJS
Explore advanced object-oriented design principles
Compare the various MVC implementations in Aurelia, Angular, React, and more
Who this book is for
This guide to the TypeScript that starts with basic concepts, and then builds on this knowledge to introduce more advanced language features and frameworks. No prior knowledge of JavaScript is required, although some prior programming experience is assumed. If you are keen to learn TypeScript, this book will give you all of the necessary knowledge and skills to tackle any TypeScript project. If you are already an experienced JavaScript or TypeScript developer, then this book will take your skills to the next level. Learn how to use TypeScript with a multitude of modern frameworks, and choose the best framework for your project requirements. Investigate techniques for Test Driven Development, explore industry-standard design patterns, and learn how to put together a full production-ready TypeScript application.
目錄大綱
Table of Contents
TypeScript - Tools and Framework Options
Types, Variables, and Function Techniques
Interfaces, Classes, and Inheritance
Decorators, Generics, and Asynchronous Features
Declaration Files and Compile Options
Third-Party Libraries
TypeScript Compatible Frameworks
Test Driven Development
Testing Typescript Compatible Frameworks
Modularization
Object-Oriented Programming
Dependency Injection
Building Applications
Let's Get Our Hands Dirty