Skip to content

Commit

Permalink
fix: resolve csv2json type inaccuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodrig committed Jul 8, 2024
1 parent e0a035e commit e9801d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export const defaultCsv2JsonOptions: DefaultCsv2JsonOptions = {
preventCsvInjection: false,
trimFieldValues : false,
trimHeaderFields: false,
wrapBooleans: false,
};

export const excelBOM = '\ufeff';
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export interface DefaultCsv2JsonOptions extends
Pick<Csv2JsonOptions, 'headerFields'>,
Pick<Csv2JsonOptions, 'parseValue'>,
// Then extend the types with required fields and specific fields omitted:
Omit<Omit<Omit<BuiltCsv2JsonOptions, 'keys'>, 'headerFields'>, 'parseValue'> {}
Omit<Omit<Omit<Omit<BuiltCsv2JsonOptions, 'wrapBooleans'>, 'keys'>, 'headerFields'>, 'parseValue'> {}

export interface FullJson2CsvOptions extends DefaultJson2CsvOptions {
/**
Expand Down

0 comments on commit e9801d3

Please sign in to comment.