Skip to content

Commit

Permalink
fix issue exceljs#1178
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanscut committed Mar 25, 2020
1 parent 1166d20 commit 3d01af2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1311,6 +1311,9 @@ export interface Xlsx {
}

// https://c2fo.io/fast-csv/docs/parsing/options

type HeaderArray = (string | undefined | null)[];
type HeaderTransformFunction = (headers: HeaderArray) => HeaderArray;
export interface FastCsvParserOptionsArgs {
objectMode: boolean;
delimiter: string;
Expand All @@ -1331,6 +1334,23 @@ export interface FastCsvParserOptionsArgs {
skipRows: number;
}

interface QuoteColumnMap {
[s: string]: boolean;
}
declare type QuoteColumns = boolean | boolean[] | QuoteColumnMap;

interface RowMap {
[key: string]: any;
}
declare type RowHashArray = [string, any][];
declare type RowArray = string[];
declare type Rows = RowArray | RowMap | RowHashArray;
declare type RowTransformCallback = (error?: Error | null, row?: Rows) => void;
interface RowTransformFunction {
(row: Rows, callback: RowTransformCallback): void;
(row: Rows): Rows;
}

// https://c2fo.io/fast-csv/docs/formatting/options/
export interface FastCsvFormatterOptionsArgs {
objectMode: boolean;
Expand Down

0 comments on commit 3d01af2

Please sign in to comment.