BT

TypeScript for C# Programmers

by Steve Fenton on Jul 22, 2013

About the Author

Steve Fenton has been working on large-scale JavaScript applications for over ten years. His background is in programming, writing software for trading portals, investment reconciliation systems, cloud contact centres and clinical decision support using a mixture of C# and web technologies and Agile methodologies. Steve is the author of the first book on TypeScript; "TypeScript for JavaScript Programmers", released to co-incide with the public release of the language on 1st October 2012.

Due to the popularity of the open web, JavaScript is becoming an essential language and since 2009 it has been running on servers too thanks to NodeJS. The problem is that due to JavaScript's dynamic type system, it is hard to create great tooling around the language such as sensible auto-completion, refactoring support, type-checking and modularisation.
TypeScript is an open source lanaguage from Microsoft that solves this problem by introducing an optional type system and class-based object-orientation, which make great tooling for large applications possible.
TypeScript let's you write JavaScript that is robust enough for the enterprise and that can run in any browser, on any host and on any operating system.

Free download

Download this book FREE (PDF) | Download this book FREE (ePub) | Download this book FREE (MOBI)

Tabel of Contents

  • Compiling or Transpiling

  • Language Features

    • TypeScript Files
    • Types
    • Modules, Classes and Interfaces
    • Functions
    • Enumerations
    • Generics
  • Structural Typing

  • Access Modifiers

  • Memory Management

    • Releasing Resources
  • Exceptions

  • Arrays

  • Dates

    • Now
    • Date Methods
  • Events

    • Mouse Events
    • Keyboard Events
    • Object Events
    • Form Events
    • Custom Events
    • Running Order
  • Framework

  • Creating Definitions

    • Dynamic Declarations
    • Type Declarations
  • Useful Tricks

    • Obtaining Runtime Types
    • Extending Native Objects
General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2013 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT