create accessor callbacks for a field

  • Parameters

    • Optionalset: setter
    • Optionalget: getter

    Returns ((target: any, propertyKey: string, descriptor?: undefined) => void)

      • (target, propertyKey, descriptor?): void
      • Parameters

        • target: any
        • propertyKey: string
        • Optionaldescriptor: undefined

        Returns void