3. Property Decorator

# Typescript Decorator
Medium
Property decorators are generally not used alone, but are mainly used in combination with class or method decorators for composite decoration.

Parameters

  • The property decorator function has two parameters: target
    • For regular properties, target is the prototype of the current object. In other words, if Employee is an object, then target is
      .
    • For static properties, target is the class of the current object.
propertyKey