Function amendMemberOf

  • Amends a member (property) of the class.

    Applies the given amendments to the own property of the target class prototype.

    Type Parameters

    • TClass extends AmendableClass<any, TClass>

      A type of amended class.

    • TKey extends string | number | symbol = keyof InstanceType<TClass>

      A type of amended member key.

    • TAmended extends AeMember<InstanceType<TClass>[TKey], TClass, InstanceType<TClass>[TKey], TAmended> = AeMember<InstanceType<TClass>[TKey], TClass, InstanceType<TClass>[TKey]>

      A type of the entity representing a member to amend.

    Parameters

    • decorated: DecoratedAeMember<TClass, TAmended>

      Decorated class representation.

    • memberKey: TKey

      A key of the member to amend.

    • Rest ...amendments: Amendment<TAmended>[]

      Amendment to apply.

    Returns void

Generated using TypeDoc