Function definePrototypeProperty

  • Type Parameters

    • T extends { prototype: unknown }
    • P extends string
    • V

    Parameters

    • Class: T
    • property: P

      name of the property

    • value: V

      value

    • Optionaloptions: DefinePropertyOptions
      • Optionalconfigurable?: boolean
      • Optionalenumerable?: boolean
      • Optionalwritable?: boolean

    Returns any | T & { [K in P]: V }

    Class