import type { IDateColumnDesc } from '../../model' ; import ColumnBuilder from './ColumnBuilder' ; export default class DateColumnBuilder extends ColumnBuilder < IDateColumnDesc > { constructor ( column ) { super ( 'date' , column ) ; } param { string } format param { string } parse format ( format , parse ? ) { this . desc . dateFormat = format ; if ( parse ) { this . desc . dateParse = parse ; } return this ; } } param { string } column returns { DateColumnBuilder } export function buildDateColumn ( column ) { return new DateColumnBuilder ( column ) ; }