Working with Decorators

In this chapter, we are going to learn about annotations and decorators—the two new features based on the future ECMAScript 7 specification, but we can use them today with TypeScript 1.5 or higher. You will learn about the following topics:

  • Annotations and decorators
  • The reflection metadata API
  • The decorator factory

Get Learning TypeScript 2.x - Second Edition 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.