vlocode-project - v1.42.0
    Preparing search index...

    Function defineAliasedProperties

    • Define facade properties on the target object which are mapped to the source properties specified in the properties parameter. The facade properties are defined as non-enumerable and configurable.

      Type Parameters

      • T extends object

      Parameters

      • target: T

        Target object on which to define the facade properties

      • properties: Record<PropertyKey, PropertyKey>

        Object specifying the mapping of the facade properties to the source properties; the keys of the object are the facade property names and the values are the source property names

      • Optionaloptions: { configurable?: boolean; enumerable?: boolean }

      Returns T

      The target object with the defined facade properties