Skip to content

Commit e9801d3

Browse files
committed
fix: resolve csv2json type inaccuracy
1 parent e0a035e commit e9801d3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export const defaultCsv2JsonOptions: DefaultCsv2JsonOptions = {
5252
preventCsvInjection: false,
5353
trimFieldValues : false,
5454
trimHeaderFields: false,
55-
wrapBooleans: false,
5655
};
5756

5857
export const excelBOM = '\ufeff';

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export interface DefaultCsv2JsonOptions extends
187187
Pick<Csv2JsonOptions, 'headerFields'>,
188188
Pick<Csv2JsonOptions, 'parseValue'>,
189189
// Then extend the types with required fields and specific fields omitted:
190-
Omit<Omit<Omit<BuiltCsv2JsonOptions, 'keys'>, 'headerFields'>, 'parseValue'> {}
190+
Omit<Omit<Omit<Omit<BuiltCsv2JsonOptions, 'wrapBooleans'>, 'keys'>, 'headerFields'>, 'parseValue'> {}
191191

192192
export interface FullJson2CsvOptions extends DefaultJson2CsvOptions {
193193
/**

0 commit comments

Comments
 (0)