abstract-sheet
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -6,3 +6,3 @@ import { AbstractSheet } from "../abstract-sheet/abstract-sheet"; | ||
}; | ||
export declare function toCsv(abstractSheets: ReadonlyArray<AbstractSheet>, options?: { | ||
export type CsvOptions = { | ||
readonly separator?: string; | ||
@@ -16,3 +16,4 @@ readonly rowSeparator?: string; | ||
readonly dateFormat?: string; | ||
}): ReadonlyArray<ReadonlyArray<CsvFile>>; | ||
}; | ||
export declare function toCsv(abstractSheets: ReadonlyArray<AbstractSheet>, options?: CsvOptions): ReadonlyArray<ReadonlyArray<CsvFile>>; | ||
//# sourceMappingURL=csv.d.ts.map |
{ | ||
"name": "abstract-sheet", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Abstract sheet", | ||
@@ -31,3 +31,3 @@ "author": "Divid AB <info@divid.se>", | ||
}, | ||
"gitHead": "ba38dce7eeeb796f373cd55430f81ba1e1a78133" | ||
"gitHead": "86ae6bb1c7cf9909c7ec473986770f4794912ae4" | ||
} |
@@ -8,14 +8,16 @@ import * as XLSX from "xlsx-js-style"; | ||
export type CsvOptions = { | ||
readonly separator?: string; | ||
readonly rowSeparator?: string; | ||
readonly noTrailingSeparator?: boolean; | ||
readonly blankRows?: boolean; | ||
readonly skipHidden?: boolean; | ||
readonly forceQuotes?: boolean; | ||
readonly rawNumber?: boolean; | ||
readonly dateFormat?: string; | ||
}; | ||
export function toCsv( | ||
abstractSheets: ReadonlyArray<AbstractSheet>, | ||
options?: { | ||
readonly separator?: string; | ||
readonly rowSeparator?: string; | ||
readonly noTrailingSeparator?: boolean; | ||
readonly blankRows?: boolean; | ||
readonly skipHidden?: boolean; | ||
readonly forceQuotes?: boolean; | ||
readonly rawNumber?: boolean; | ||
readonly dateFormat?: string; | ||
} | ||
options?: CsvOptions | ||
): ReadonlyArray<ReadonlyArray<CsvFile>> { | ||
@@ -22,0 +24,0 @@ return (abstractSheets as Array<AbstractSheet>).map((as) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
606699
7058