data-forge-ts
data-forge-ts copied to clipboard
asCSV method doesnt accept paparse options
When trying to pass valid paparse options to the asCSV method TS throws an error.
This is the actual options interface which doesnt allows other paparse options: `/**
- Options for CSV output.
- The options object is passed directly to PapaParse.unparse, please see PapaParse docs for additional options.
/
export interface ICSVOutputOptions {
/*
- Enable or disable output of the CSV header line.
- Defaults to true. */ header?: boolean; }`
These are paparse options:
{ quotes: false, //or array of booleans quoteChar: '"', escapeChar: '"', delimiter: ",", header: true, newline: "\r\n", skipEmptyLines: false, //other option is 'greedy', meaning skip delimiters, quotes, and whitespace. columns: null //or array of strings }
@arvx47 thanks for reporting. Please feel free to add the options you need and submit a PR and then I'll update on npm.