Interface ClassAccessorDecoratorTarget<This, Value>

    Describes the target provided to class accessor field decorators.

    interface ClassAccessorDecoratorTarget<This, Value> {
        get(this: This): Value;
        set(this: This, value: Value): void;
    }

    Type Parameters

    • This

      The this type to which the target applies.

    • Value

      The property type for the class accessor field.

    Methods

    Methods

    • Invokes the getter that was defined prior to decorator application.

      Parameters

      Returns Value

      let value = target.get.call(instance);
      
    • Invokes the setter that was defined prior to decorator application.

      Parameters

      Returns void

      target.set.call(instance, value);