(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .

Extending Classes and Interfaces using TypeScript

(0 votes)
0 comments   /   posted by Silverlight Show on Jan 08, 2013
Tags:   typescript , dan-wahlin

Read original post at Dan Wahlin's WebLog

In a previous post I discussed the fundamentals of the TypeScript language and how it can be used to build JavaScript applications. John Papa has also started a nice series of posts on the subject that go along with the new TypeScript Fundamentals course that he and I co-authored for Pluralsight. TypeScript is all about strongly-typed variables and function parameters, encapsulation of code, and catching issues upfront as opposed to after the fact to provide more maintainable code bases. One of the great features it offers is the ability to take advantage of inheritance without having to be an expert in JavaScript prototypes, constructors, and other language features (although I certainly recommend learning about those features regardless if you use TypeScript or not).

In this post I’ll discuss how classes and interfaces can be extended using TypeScript and the resulting JavaScript that’s generated. Let’s jump in! 


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter