From e9801d3cedc93f4425dfa32d6fc4a6dab18dacd5 Mon Sep 17 00:00:00 2001 From: mrodrig Date: Sun, 7 Jul 2024 23:53:16 -0400 Subject: [PATCH] fix: resolve csv2json type inaccuracy --- src/constants.ts | 1 - src/types.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index ac59c3b..735cd87 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -52,7 +52,6 @@ export const defaultCsv2JsonOptions: DefaultCsv2JsonOptions = { preventCsvInjection: false, trimFieldValues : false, trimHeaderFields: false, - wrapBooleans: false, }; export const excelBOM = '\ufeff'; diff --git a/src/types.ts b/src/types.ts index 57535ee..2646d2f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -187,7 +187,7 @@ export interface DefaultCsv2JsonOptions extends Pick, Pick, // Then extend the types with required fields and specific fields omitted: - Omit, 'headerFields'>, 'parseValue'> {} + Omit, 'keys'>, 'headerFields'>, 'parseValue'> {} export interface FullJson2CsvOptions extends DefaultJson2CsvOptions { /**