Function defineConstant

  • Type Parameters

    • T
    • P extends string
    • V

    Parameters

    • target: T
    • property: P

      name of the property

    • value: V

      value

    • Optionaloptions: EnumerableOptions
      • Optionalenumerable?: boolean

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

    target