decorator metadata

An object shared by all decorators on a class, reached through context.metadata and later readable at Symbol.metadata on the class.

In more detail

It replaces the old habit of attaching metadata by modifying global objects or prototypes. TypeScript 5.2 added support for it.

Related terms

Taught in

References