Open ondrovic opened 1 year ago
interface ObjectCsvWriterParams {
path: string;
header: ObjectStringifierHeader;
fieldDelimiter?: string;
recordDelimiter?: string;
headerIdDelimiter?: string;
alwaysQuote?: boolean;
encoding?: string;
append?: boolean;
}
use another API with optional header. It's not a bug.
interface ArrayCsvWriterParams {
path: string;
header?: string[];
fieldDelimiter?: string;
recordDelimiter?: string;
alwaysQuote?: boolean;
encoding?: string;
append?: boolean;
}
Headers are optional but in certain instances throws the following error
Code Sandbox Here, if not sure if it's a bug in my setup or something else, but would be nice to not have to include a header.