Book description
JavaScript is everywhere, both as a pure language and in popular libraries like Angular, jQuery and Knockout, but users of modern object-oriented languages like Java and C# often find JavaScript frustrating to use and hard to extend to large-scale applications. TypeScript is an innovative open source language from Microsoft that combines powerful language features and enhanced tooling support with the key attractions of JavaScript as a flexible, dynamic language that can run in any browser and on any operating system. Pro TypeScript tells you everything you need to know about this exciting new language and how to use it in your applications.
Starting with an introduction to the language and its features, the book takes you through some of the major features of TypeScript in depth, from working with the type system through object-orientation to understanding the runtime and the TypeScript compiler. The book then covers some of the factors you need to consider when running a TypeScript application in the browser, including interacting with the DOM, making asynchronous requests, and working with useful browser APIs, followed by a demonstration of server-side TypeScript using the popular Node.js framework.
Because TypeScript compiles to plain JavaScript, exception handling, memory management and garbage collection can differ depending on where you run your program, so these topics get a chapter to themselves. You'll also find out how to include popular JavaScript frameworks in your applications, so you can combine the benefits of TypeScript with some of the best JavaScript code thats already out there waiting to be used. The final chapter gives an overview of automated testing for TypeScript applications.
Pro TypeScript offers a balanced and practical guide to a language that will transform your experience of JavaScript development.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- Acknowledgments
- Introduction
- Chapter 1: TypeScript Language Features
- Chapter 2: The Type System
- Chapter 3: Object Orientation in TypeScript
- Chapter 4: Understanding the Runtime
- Chapter 5: Running TypeScript in a Browser
- Chapter 6: Running TypeScript on a Server
- Chapter 7: Exceptions, Memory, and Performance
- Chapter 8: Using JavaScript Libraries
- Chapter 9: Automated Testing
- Appendix 1: JavaScript Quick Reference
- Appendix 2: TypeScript Compiler
- Appendix 3: Bitwise Flags
- Appendix 4: Coding Katas
- Index
Product information
- Title: Pro TypeScript
- Author(s):
- Release date: August 2014
- Publisher(s): Apress
- ISBN: 9781430267904
You might also like
book
Pro TypeScript: Application-Scale JavaScript Development
Explore the features of this innovative open source language in depth, from working with the type …
book
TypeScript: Modern JavaScript Development
Leverage the features of TypeScript to boost your development skills and create captivating applications About This …
book
Refactoring TypeScript
Discover various techniques to develop maintainable code and keep it in shape. Key Features Learn all …
book
Refactoring Angular Applications
Now that Angular 2 is available, you may be tempted to scrap the single-page enterprise application …