Function objDefineProperties

  • The objDefineProperties() method defines new or modifies existing properties directly on an object, returning the object. This is a wrapper for Object.defineProperties

    Type Parameters

    • T

    Parameters

    • target: T

      The object on which to define or modify properties.

    • props: PropertyDescriptorMap & ThisType<any>

      An object whose keys represent the names of properties to be defined or modified and whose values are objects describing those properties. Each value in props must be either a data descriptor or an accessor descriptor; it cannot be both (see ObjDefinePropDescriptorMap for more details).

    Returns T

    Since

    0.6.0