TypeScript Revealed

By Dan Maharry

TypeScript Revealed Cover Image

TypeScript Revealed is a quick 100-page guide to Microsoft’s “JavaScript for application-scale development," covering the new object-oriented-like syntax, tooling, community support, and process to include it into your projects.

Full Description

  • ISBN13: 978-1-4302-5725-7
  • 104 Pages
  • User Level: Intermediate
  • Publication Date: February 2, 2013
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $19.99
  • eBook Price: $13.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

TypeScript Revealed is a quick 100-page guide to Anders Hejlsberg's new take on JavaScript. With this brief, fast-paced introduction to TypeScript, .NET, Web and Windows 8 application developers who are already familiar with JavaScript will easily get up to speed with TypeScript and decide whether or not to start incorporating it into their own development.

TypeScript is ‘JavaScript for Application-scale development’; a superset of JavaScript that brings to it an additional object-oriented-like syntax familiar to .NET programmers that compiles down into simple, clean JavaScript that any browser can run today. It’s also tied to the next version of the JavaScript standard, which means that TypeScript will continue to evolve over time to keep in step with that standard and with the capabilities of the engines that will execute JavaScript applications. 

If you are a .NET developer, Web designer or developer, or a programmer with a keen interest in scalable applications, TypeScript Revealed is a great way to get started with the language, learn how it compiles into JavaScript, and how easy it is to learn from a .NET/Java developer's perspective.

  • Takes you through the language features in Typescript additional to those in JavaScript
  • Describes the tooling and community support for TypeScript development
  • Discusses how TypeScript can be included in ASP.NET, Windows 8, and node.js application development projects.

What you’ll learn

  • Why you should care about TypeScript
  • What it does and what it doesn't do
  • The current toolset and levels of support
  • The new syntax features of TypeScript
  • How to build your own TypeScript declaration files
  • How to incorporate TypeScript into your projects

Who this book is for

TypeScript Revealed is aimed at the early adopter developer who is already familiar with Microsoft tools and .NET and/or JavaScript development that wants a flavor of TypeScript distilled, culled, and organized in one place.

Table of Contents

Table of Contents

Chapter 1:
What is TypeScript?
Why TypeScript?

Chapter 2:
New Syntax
Static Typing & Type Inference Tooling
Interfaces
Classes
Derived classes using the 'extends' keyword.
Arrow functions
Modules
Enforcing the Intention of some features.
Typescript vs EcmaScript6

Chapter 3:

Working with TypeScript
Tools & Resources



Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 51:
I think this:

var sayHello: (input: string) : string = function (s: string) { return "Hello " + s; }

should be:

var sayHello: (input: string) => string = function (s: string) { return "Hello " + s; }