Function definePrototypeLazyProperty

  • Create a getter that transforms then to a property

    Type Parameters

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

    Parameters

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

    Class