TypeScript is a modern language with many advanced features. This course will teach you those features that build on the fundamentals you already know and allow you to harness its full power to write better code with fewer errors.
In order to take full advantage of TypeScript you must have the knowledge to use its advanced features to write clean and expressive code. In this course, Advanced TypeScript, you will learn how to harness the full power of the type system to write better code with fewer errors. You will learn how to extend your use of existing types with union, intersection, and tuple types. You'll then go over how to create and use decorators. You will also learn how to manage asynchronous code using promises and the async and await keywords. When you're finished with this course, you will have the advanced skills necessary to fully utilize the language to solve all of your client and server-side coding problems.
Maximizing TypeScript Hi, this is Brice Wilson with Pluralsight. Welcome to Advanced TypeScript. In this course, I'm going to help you take your TypeScript skills to the next level. Maybe you've experimented with some basic features of the language and want to explore some of its other capabilities, or maybe you've been using it for a while and find that you now have a need for some of its more advanced features on your project. In either case, I think this course has just what you're looking for; and we'll cover lots of powerful features you won't normally see in an introduction to the language. This course is really a follow-up to my earlier course titled TypeScript In-depth. That course was for complete beginners with no TypeScript experience. In it I covered all of the basics needed to get up and running with TypeScript and presented lots of beginner and intermediate language features like functions, classes, interfaces, modules, generics, and lots more. That course is certainly not a requirement for this course, but if you're new to the language; or just need a refresher on some of those topics, then that would be a great place to start. I also used the same simple demo project in both courses, so I hope that makes moving between that course and this one a little more seamless.
Going Further with Basic Types Hello and welcome back. I'm Brice Wilson. In this module, I'm going to show you how to do more with the basic typescript types you are already familiar with. I will cover a couple of nice ES 2015 features typescript supports and then show you several ways to take the types you already know how to create and combine them in new ways to create entirely new types that ultimately allow you to write more flexible code. I will begin by showing you how to perform destructuring assignments and how to use the spread operator. These are both new ES 2015 syntax features that the typescript has adopted. After that, I will show you how to create and use tuple types, union types, and intersection types. They may sound like completely new things but they are really just different ways to combine existing types to make your code more flexible and expressive. After explaining intersection types, I'll show you how to create mixins which allow you to combine all of the members from multiple classes into a single class. I'll then show you how to create string literal types and how to define type aliases that can make your code more readable as you begin to use some of the other features like union types and intersection types. I'll start things off in the next clip by showing you how to perform destructuring assignments.
Creating and Using Decorators Hi, this is Brice Wilson. In this module, I'm going to cover decorators. They're chunks of functionality you can add to classes, methods and other constructs with a very simple syntax and they play an important role in several large client side frameworks like Angular2. Lots of languages have a similar feature so if you've ever used annotations in Java or attributes in C#, then you'll feel right at home with decorators in TypeScript. I'll start this module off by first answering a couple of questions. What are decorators and how are they implemented? I just gave you a little preview of what they are but I'll give you some more background and go over some use cases as well. I'll also cover the syntax required to both define your own decorators as well as the syntax you'll use when applying them to declarations throughout your code. There are several different types of decorators and I'll touch on all of them and point out some of the slight differences in how they're implemented.
Writing Cleaner Code with TSLint Hi, this is Brice Wilson. In this final module of the course, I'm going to show you how to use a utility named TSLint to help you write code with fewer errors that also conforms to a set of code styling standards you can configure. I'll start off this module with a brief explanation of TSLint and how you can use it as part of your TypeScript development process. I'll then quickly get into a demo and show you how to install TSLint, run it, and configure the linting rules it uses to alert you to problems. In a second demo, I'll show you how to install and use a really great extension for Visual Studio Code that will alert you to linting issues as you're writing your code.