Function ReflectSet

  • Sets the property of target, equivalent to target[propertyKey] = value when receiver === target.

    Type Parameters

    • T extends object

    • P extends PropertyKey

    Parameters

    • target: T

      Object that contains the property on itself or in its prototype chain.

    • propertyKey: P

      Name of the property.

    • value: P extends keyof T ? T[P] : any
    • Optional receiver: any

      The reference to use as the this value in the setter function, if target[propertyKey] is an accessor property.

    Returns boolean

  • Parameters

    • target: object
    • propertyKey: PropertyKey
    • value: any
    • Optional receiver: any

    Returns boolean

Generated using TypeDoc