Skip to main content
  • Book
  • © 2014

Pro TypeScript

Application-Scale JavaScript Development

Apress

Authors:

  • Script shows you how to write large-scale Java.
  • Script programs that can run in any web browser or on any web server using Microsoft’s Type.

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (13 chapters)

  1. Front Matter

    Pages i-xxvi
  2. TypeScript Language Features

    • Steve Fenton
    Pages 1-46
  3. The Type System

    • Steve Fenton
    Pages 47-62
  4. Object Orientation in TypeScript

    • Steve Fenton
    Pages 63-86
  5. Understanding the Runtime

    • Steve Fenton
    Pages 87-106
  6. Running TypeScript in a Browser

    • Steve Fenton
    Pages 107-140
  7. Running TypeScript on a Server

    • Steve Fenton
    Pages 141-162
  8. Exceptions, Memory, and Performance

    • Steve Fenton
    Pages 163-176
  9. Using JavaScript Libraries

    • Steve Fenton
    Pages 177-184
  10. Automated Testing

    • Steve Fenton
    Pages 185-196
  11. JavaScript Quick Reference

    • Steve Fenton
    Pages 197-202
  12. TypeScript Compiler

    • Steve Fenton
    Pages 203-204
  13. Bitwise Flags

    • Steve Fenton
    Pages 205-208
  14. Coding Katas

    • Steve Fenton
    Pages 209-212
  15. Back Matter

    Pages 213-217

About this book

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 that’s 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.

About the author

Steve Fenton has worked on large-scale JavaScript applications for over ten years, from online trading portals to cloud contact centers to health care decision support. He has been a vocal supporter of TypeScript since its release and wrote the first book on the TypeScript language in October 2012. As well as working full time in the health care industry, Steve has had an academic renaissance, first completing a national certificate in psychology and then enrolling in a distance learning course at Harvard. Steve currently lives in Basingstoke, United Kingdom with his wife Rebecca and daughter Lily. He can usually be found in his local coffee shop reading books on his two favorite topics: programming and psychology.

Bibliographic Information

Buy it now

Buying options

eBook USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access