Function defineLazyProperty

  • Create a getter that transforms then to a property

    Type Parameters

    • T
    • P extends string
    • V

    Parameters

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

    target