Decorators Metadata

Learn how to use TypeScript decorators to carry extra metadata and extract information about a method at runtime.

We'll cover the following

The TypeScript compiler includes experimental support for decorators to carry extra metadata when they are used. This metadata provides us with a little more information with regard to how a decorator is used. In order to activate this feature, we will need to set the emitDecoratorMetadata flag in our tsconfig.json file to true as follows:

Get hands-on with 1400+ tech skills courses.