Skip to content

Commit f3f27cb

Browse files
authored
TS definition: Add wrapBooleans to ISharedOptions
1 parent 042008b commit f3f27cb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/converter.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ export interface ISharedOptions {
1818
*/
1919
excelBOM?: boolean;
2020

21+
/**
22+
* Should boolean values be wrapped in wrap delimiters to prevent Excel from
23+
* converting them to Excel's TRUE/FALSE Boolean values.
24+
* @default false
25+
*/
26+
wrapBooleans?: boolean;
27+
2128
/**
2229
* Specify the keys that should be converted
2330
*
@@ -98,11 +105,11 @@ export interface IFullOptions extends ISharedOptions {
98105
}
99106

100107
export function json2csv(data: object[],
101-
callback: (err?: Error, csv?: string) => void, options?: IFullOptions): void;
108+
callback: (err?: Error, csv?: string) => void, options?: IFullOptions): void;
102109

103110
export function json2csvAsync(data: object[], options?: IFullOptions): Promise<string>;
104111

105112
export function csv2json(csv: string,
106-
callback: (err?: Error, data?: any[]) => void, options?: ISharedOptions): void;
113+
callback: (err?: Error, data?: any[]) => void, options?: ISharedOptions): void;
107114

108115
export function csv2jsonAsync(csv: string, options?: ISharedOptions): Promise<any[]>;

0 commit comments

Comments
 (0)