Decorators and Advanced ES6 Features

This chapter introduces the TypeScript equivalent of C# attributes and metadata, namely, TypeScript decorators and metadata. It also introduces advanced ES6-7 features available in TypeScript that might still be unfamiliar to the average JavaScript developer, such as symbols, iterators, generators, promises, and their associated C#-like async/await notation.

More specifically, the following topics will be covered in this chapter:

  • How to use ECMAScript 6 symbols in TypeScript?
  • How to define and use the ECMAScript 6 equivalent of C# IEnumerables, in other words, iterators, iterables, and generators, and how to use ECMAScript 6 built-in iterables (maps, sets, and so on)?
  • How to handle asynchronous operation ...

Get Hands-On TypeScript for C# and .NET Core Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.