Skip to content

Commit 563695b

Browse files
authored
Merge pull request #566 from kitfit-dave/fix/DataFrame
adds function overload to NDFrame toCSV and toJSON so danfojs-base an…
2 parents 9685a63 + 0ca4212 commit 563695b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/danfojs-base/core/generic.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ export default class NDframe implements NDframeInterface {
445445
* sep: "+"
446446
* })
447447
*/
448+
toCSV(options?: any): string
448449
toCSV(options?: any): string | void {
449450
throw new Error("`toCSV` function is deprecated. Use `toCSV` function directly instead. e.g. `dfd.toCSV(df)`")
450451
}
@@ -468,6 +469,7 @@ export default class NDframe implements NDframeInterface {
468469
* })
469470
* ```
470471
*/
472+
toJSON(options?: any): object
471473
toJSON(options?: any): object | void {
472474
throw new Error("`toJSON` function is deprecated. Use `toJSON` function directly instead. e.g. `dfd.toJSON(df, { format: 'row' })`")
473475
}

0 commit comments

Comments
 (0)