this

A JavaScript keyword that refers to the object a function was called on, which changes depending on how it is called.

In more detail

A decorator's replacement method must forward this, usually with target.call(this, ...args). TypeScript lets you declare this: This as a fake first parameter to type it.

Related terms

Taught in

References