- [Voiceover] So far in the course, I've showed you how…to use TypeScript as a transpiler that allows you…to take advantage of ECMAScript 2015 language features…and as a way to guard yourself against many common bugs…such as misspelling member names or…returning the wrong type from a function.…Now, that's all very valuable, but the real value…in using TypeScript is the fact that you can go above…and beyond the types that JavaScript provides out of the box…and define custom types that describe the data structures…and behavior that your application uses.…

TypeScript offers three ways to define a custom type:…interfaces, classes, and enums.…In this chapter, I'm going to start with…the easiest of those three: interfaces.…An interface in TypeScript is pretty much the same as…an interface in just about any other statically-typed…language such as C# or Java.…It acts as a contract that describes the data and…the behaviors that the object exposes…for others to interact with.…In order to define an interface in TypeScript,…

Resume Transcript Auto-Scroll

Author

Released

5/2/2016

TypeScript lets you write JavaScript "the way you really want to." TypeScript compiles to plain JavaScript, so it works in any browser, any host, and any OS. It adds a variety of helpful syntax and tools onto an already mature language, bringing the power and productivity of static typing and object-oriented development to core JavaScript. Plus, it's completely open source.

In this course, Jess Chadwick teaches you how to leverage the full power of the TypeScript language in your JavaScript applications, starting by revisiting some JavaScript fundamentals. Then he reviews the data types, classes, generics, modules, and decorators that are unique to TypeScript. In the "Real-World Application Development" chapter, he demos how to convert an existing JavaScript codebase to take advantage of everything TypeScript has to offer. What's more, he shows you how to do it all using the environment of your choosing: Windows, Mac, or even Linux.