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 ...