Function defineLazyConstant

  • Create a getter that transforms then to a property

    Type Parameters

    • T
    • P extends string
    • V

    Parameters

    • target: T
    • property: P

      name of the property

    • callback: LazyCallback<V>

      function called when the property is accessed the first time

    • Optionaloptions: EnumerableOptions

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

    target