@nebius/js-sdk - v0.2.54
    Preparing search index...

    Function attachMessageDescriptor

    • Attaches a descriptor to a message without adding an enumerable property.

      The function normally changes and returns message. If the object does not accept a new property, it creates a shallow copy, attaches the descriptor, and returns that copy. Always use the returned value.

      If descriptor is absent, the function returns message unchanged.

      Type Parameters

      • T extends object

      Parameters

      Returns T