import { BoxrecCommonTableHeader , getColumnDataByColumnHeader , trimRemoveLineBreaks } from "../helpers" ; constructor export function NumberOfRoundsGetter ( ) { return target => { Object . defineProperty ( target . prototype , "numberOfRounds" , { get ( ) { const numberOfRounds = trimRemoveLineBreaks ( getColumnDataByColumnHeader ( this . $ , this . headerColumns , BoxrecCommonTableHeader . rounds , false ) ) ; if ( numberOfRounds . includes ( "/" ) ) { return numberOfRounds . split ( "/" ) . map ( item => parseInt ( item , 10 ) ) ; } const parsedNumberOfRounds = parseInt ( numberOfRounds , 10 ) ; return [ parsedNumberOfRounds , parsedNumberOfRounds ] ; } , } ) ; } ; } export interface NumberOfRoundsInterface { readonly numberOfRounds : number [ ] ; }