import { BoxrecCommonTablesColumnsClass } from "../boxrec-common-tables/boxrec-common-tables-columns.class" ; import { WinLossDraw } from "../boxrec-pages/boxrec.constants" ; import { BoxrecCommonTableHeader , getColumnDataByColumnHeader } from "../helpers" ; param columnHeaderText param returnHTML constructor export function OutcomeGetter ( columnHeaderText = BoxrecCommonTableHeader . outcome , returnHTML = false ) { return target => { Object . defineProperty ( target . prototype , "outcome" , { get ( ) { return BoxrecCommonTablesColumnsClass . parseOutcome ( getColumnDataByColumnHeader ( this . $ , this . headerColumns , columnHeaderText , returnHTML ) ) ; } , } ) ; } ; } export interface OutcomeInterface { readonly outcome : WinLossDraw | null ; }