import { CsvStringifier } from './abstract' ; import { FieldStringifier } from '../field-stringifier' ; import { Field } from '../record' ; export class ArrayCsvStringifier extends CsvStringifier < Field [ ] > { constructor ( fieldStringifier , recordDelimiter ? , private readonly header ? ) { super ( fieldStringifier , recordDelimiter ) ; } protected getHeaderRecord ( ) { return this . header ; } protected getRecordAsArray ( record ) { return record ; } }