Skip to content

Commit 06ebe09

Browse files
committed
Updated docs for CSV output options.
1 parent 74ef4f4 commit 06ebe09

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/index.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ declare module "data-forge/build/lib/dataframe" {
229229
* Treat the dataframe as CSV data for purposes of serialization.
230230
* This is the first step you need in serializing a dataframe to a CSV data file.
231231
*
232-
* @param options Options for CSV output. The options object is passed directly to PapaParse, please see [PapaParse docs for additional options](https://www.papaparse.com/docs#config).
233-
*
232+
* @param options Options for CSV output. The options object is passed directly to [PapaParse.unparse](https://www.papaparse.com/docs#unparse), please see [PapaParse docs for additional options](https://www.papaparse.com/docs#config).
233+
*
234234
* @return Returns a {@link ICsvSerializer} that represents the dataframe for serialization in the CSV format. Call `writeFile` or `writeFileSync` to output the CSV data to a text file.
235235
*
236236
* @example
@@ -293,7 +293,7 @@ declare module "data-forge/build/lib/dataframe" {
293293
* Treat the dataframe as CSV data for purposes of serialization.
294294
* This is the first step you need in serializing a dataframe to a CSV data file.
295295
*
296-
* @param options Options for CSV output. The options object is passed directly to PapaParse, please see [PapaParse docs for additional options](https://www.papaparse.com/docs#config).
296+
* @param options Options for CSV output. The options object is passed directly to [PapaParse.unparse](https://www.papaparse.com/docs#unparse), please see [PapaParse docs for additional options](https://www.papaparse.com/docs#config).
297297
*
298298
* @return Returns a {@link ICsvSerializer} that represents the dataframe for serialization in the CSV format. Call `writeFile` or `writeFileSync` to output the CSV data to a text file.
299299
*
@@ -344,7 +344,7 @@ declare module "data-forge/build/lib/dataframe" {
344344
* Treat the dataframe as CSV data for purposes of serialization.
345345
* This is the first step you need in serializing a dataframe to a CSV data file.
346346
*
347-
* @param options Options for CSV output. The options object is passed directly to PapaParse, please see [PapaParse docs for additional options](https://www.papaparse.com/docs#config).
347+
* @param options Options for CSV output. The options object is passed directly to [PapaParse.unparse](https://www.papaparse.com/docs#unparse), please see [PapaParse docs for additional options](https://www.papaparse.com/docs#config).
348348
*
349349
* @return Returns a {@link ICsvSerializer} that represents the dataframe for serialization in the CSV format. Call `writeFile` or `writeFileSync` to output the CSV data to a text file.
350350
*
@@ -422,7 +422,7 @@ export interface IAsyncFileReader {
422422
* Deserialize a CSV file to a DataFrame.
423423
* Returns a promise that later resolves to a DataFrame.
424424
*
425-
* @param [config] Optional configuration file for parsing.
425+
* @param config Optional configuration file for parsing.
426426
*
427427
* @returns Returns a promise of a dataframe loaded from the file.
428428
*
@@ -474,7 +474,7 @@ class AsyncFileReader implements IAsyncFileReader {
474474
* Deserialize a CSV file to a DataFrame.
475475
* Returns a promise that later resolves to a DataFrame.
476476
*
477-
* @param [config] Optional configuration file for parsing.
477+
* @param config Optional configuration file for parsing.
478478
*
479479
* @returns Returns a promise of a dataframe loaded from the file.
480480
*
@@ -528,7 +528,7 @@ export interface ISyncFileReader {
528528
/**
529529
* Deserialize a CSV file to a DataFrame.
530530
*
531-
* @param [config] Optional configuration file for parsing.
531+
* @param config Optional configuration file for parsing.
532532
*
533533
* @returns Returns a dataframe that was deserialized from the file.
534534
*
@@ -578,7 +578,7 @@ class SyncFileReader implements ISyncFileReader {
578578
/**
579579
* Deserialize a CSV file to a DataFrame.
580580
*
581-
* @param [config] Optional configuration file for parsing.
581+
* @param config Optional configuration file for parsing.
582582
*
583583
* @returns Returns a dataframe that was deserialized from the file.
584584
*
@@ -609,8 +609,6 @@ class SyncFileReader implements ISyncFileReader {
609609
/**
610610
* Deserialize a JSON file to a DataFrame.
611611
*
612-
* @param [config] Optional configuration file for parsing.
613-
*
614612
* @returns Returns a dataframe that was deserialized from the file.
615613
*
616614
* @example

0 commit comments

Comments
 (0)