Interface MemberAmendmentDecorator<TValue, TClass, TUpdate>

Class instance member amendatory instance.

Type Parameters

  • TValue extends TUpdate

    Amended member value type.

  • TClass extends AmendableClass = Class

    A type of amended class.

  • TUpdate = TValue

    Amended member update type accepted by its setter.

Hierarchy

  • Applies this amendment to decorated property.

    Type Parameters

    • TMemberValue

      Decorated property value type.

    Parameters

    • this: void
    • proto: InstanceType<TClass>

      Decorated class prototype.

    • key: string | symbol

      Decorated property key.

    • Optional descriptor: AmendablePropertyDescriptor<TMemberValue, InstanceType<TClass>, TUpdate>

      Decorated property descriptor, or nothing when decorating an instance field.

    Returns any

    Either nothing, or updated property descriptor.

Methods

Generated using TypeDoc