Skip to content

Commit 2dd2a92

Browse files
authored
feat(csv-parse): add columns property in Info object type (#390)
* fix(ts): Add `columns` property in `Info` object type * Add disabled options to columns type
1 parent 204b796 commit 2dd2a92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/csv-parse/lib/index.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ export interface Info {
234234
* Number of non uniform records when `relax_column_count` is true.
235235
*/
236236
readonly invalid_field_length: number;
237+
/**
238+
* Normalized verion of `options.columns` when `options.columns` is true, boolean otherwise.
239+
*/
240+
readonly columns: boolean | { name: string }[] | { disabled: true }[];
237241
}
238242

239243
export type CsvErrorCode =

0 commit comments

Comments
 (0)