Skip to content

Commit

Permalink
feat(csv-parse): add columns property in Info object type (#390)
Browse files Browse the repository at this point in the history
* fix(ts): Add `columns` property in `Info` object type

* Add disabled options to columns type
  • Loading branch information
eliamaino-fp committed May 26, 2023
1 parent 204b796 commit 2dd2a92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/csv-parse/lib/index.d.ts
Expand Up @@ -234,6 +234,10 @@ export interface Info {
* Number of non uniform records when `relax_column_count` is true.
*/
readonly invalid_field_length: number;
/**
* Normalized verion of `options.columns` when `options.columns` is true, boolean otherwise.
*/
readonly columns: boolean | { name: string }[] | { disabled: true }[];
}

export type CsvErrorCode =
Expand Down

0 comments on commit 2dd2a92

Please sign in to comment.